[dracut] add python doc strings

main
Philip 10 years ago committed by Teo Mrnjavac
parent 60927b9363
commit 3330df99f3

@ -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…
Cancel
Save