mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 02:45:37 -04:00
Make sure we return a message when dracut or initramfs fail
This commit is contained in:
parent
388363c1f2
commit
1f6feb9417
2 changed files with 9 additions and 5 deletions
|
@ -22,8 +22,11 @@ import libcalamares
|
|||
from libcalamares.utils import check_chroot_call
|
||||
|
||||
def run_dracut():
|
||||
check_chroot_call(['dracut', '-f'])
|
||||
return check_chroot_call(['dracut', '-f'])
|
||||
|
||||
def run():
|
||||
run_dracut()
|
||||
return None
|
||||
returnCode = run_dracut()
|
||||
if returnCode != 0:
|
||||
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