diff --git a/src/modules/dracut/main.py b/src/modules/dracut/main.py index 46902fb07..d7a9bc494 100644 --- a/src/modules/dracut/main.py +++ b/src/modules/dracut/main.py @@ -5,6 +5,7 @@ # # Copyright 2014-2015, Philip Müller # Copyright 2014, Teo Mrnjavac +# Copyright 2017, Alf Gaida # # Calamares is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,7 +25,8 @@ from libcalamares.utils import target_env_call def run_dracut(): - """ Creates initramfs, even when initramfs already exists. + """ + Creates initramfs, even when initramfs already exists. :return: """ @@ -32,11 +34,14 @@ def run_dracut(): def run(): - """ Starts routine to create initramfs. It passes back the exit code if it fails. + """ + Starts routine to create initramfs. It passes back the exit code + if it fails. :return: """ return_code = run_dracut() if return_code != 0: - return "Failed to run dracut on the target", "The exit code was {}".format(return_code) + return ("Failed to run dracut on the target", + "The exit code was {}".format(return_code))