mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 01:15:38 -04:00
[dracut] add python doc strings
This commit is contained in:
parent
60927b9363
commit
3330df99f3
1 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
# === This file is part of Calamares - <http://github.com/calamares> ===
|
# === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
#
|
#
|
||||||
# Copyright 2014, Philip Müller <philm@manjaro.org>
|
# Copyright 2014-2015, Philip Müller <philm@manjaro.org>
|
||||||
# Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
# Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
||||||
#
|
#
|
||||||
# Calamares is free software: you can redistribute it and/or modify
|
# Calamares is free software: you can redistribute it and/or modify
|
||||||
|
@ -25,7 +25,7 @@ from libcalamares.utils import chroot_call
|
||||||
|
|
||||||
def run_dracut():
|
def run_dracut():
|
||||||
"""
|
"""
|
||||||
|
Creates initramfs, even when initramfs already exists.
|
||||||
|
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
@ -34,10 +34,10 @@ def run_dracut():
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
"""
|
"""
|
||||||
|
Starts routine to create initramfs. It passes back the exit code if it fails.
|
||||||
|
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
returnCode = run_dracut()
|
returnCode = run_dracut()
|
||||||
if returnCode != 0:
|
if returnCode != 0:
|
||||||
return ("Failed to run dracut on the target", "The exit code was {}".format(returnCode))
|
return ("Failed to run dracut on the target", "The exit code was {}".format(returnCode))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue