source: calamares/trunk/fuentes/src/modules/initcpio/main.py @ 7538

Last change on this file since 7538 was 7538, checked in by kbut, 13 months ago

sync with github

File size: 1.2 KB
Line 
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3#
4# === This file is part of Calamares - <https://github.com/calamares> ===
5#
6#   Copyright 2014, Philip Müller <philm@manjaro.org>
7#
8#   Calamares is free software: you can redistribute it and/or modify
9#   it under the terms of the GNU General Public License as published by
10#   the Free Software Foundation, either version 3 of the License, or
11#   (at your option) any later version.
12#
13#   Calamares is distributed in the hope that it will be useful,
14#   but WITHOUT ANY WARRANTY; without even the implied warranty of
15#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16#   GNU General Public License for more details.
17#
18#   You should have received a copy of the GNU General Public License
19#   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
20
21import libcalamares
22from libcalamares.utils import check_target_env_call
23
24
25def run_mkinitcpio():
26    """ Runs mkinitcpio with given kernel profile """
27    kernel = libcalamares.job.configuration['kernel']
28    check_target_env_call(['mkinitcpio', '-p', kernel])
29
30
31def run():
32    """ Calls routine to create kernel initramfs image.
33
34    :return:
35    """
36    run_mkinitcpio()
37
38    return None
Note: See TracBrowser for help on using the repository browser.