mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05:36 -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> ===
|
||||
#
|
||||
# Copyright 2014, Philip Müller <philm@manjaro.org>
|
||||
# Copyright 2014-2015, Philip Müller <philm@manjaro.org>
|
||||
# Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
||||
#
|
||||
# Calamares is free software: you can redistribute it and/or modify
|
||||
|
@ -25,7 +25,7 @@ from libcalamares.utils import chroot_call
|
|||
|
||||
def run_dracut():
|
||||
"""
|
||||
|
||||
Creates initramfs, even when initramfs already exists.
|
||||
|
||||
:return:
|
||||
"""
|
||||
|
@ -34,10 +34,10 @@ def run_dracut():
|
|||
|
||||
def run():
|
||||
"""
|
||||
|
||||
Starts routine to create initramfs. It passes back the exit code if it fails.
|
||||
|
||||
:return:
|
||||
"""
|
||||
returnCode = run_dracut()
|
||||
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