From b04d83262ccf77178ee88b86dfd9a1f07292b284 Mon Sep 17 00:00:00 2001 From: gryf Date: Wed, 23 Mar 2022 07:15:27 +0100 Subject: [PATCH] Force to poweroff, otherwise kerel panic would result instead. --- mkinitramfs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mkinitramfs.py b/mkinitramfs.py index fca30af..cca0420 100755 --- a/mkinitramfs.py +++ b/mkinitramfs.py @@ -1,6 +1,6 @@ #!/usr/bin/env python """ -Python2/3 compatible initrd generatin script +Python2/3 compatible initrd generating script """ import argparse import json @@ -54,6 +54,7 @@ find . -print0 | cpio --quiet --null -o -H newc | \\ gzip > %(arch)s exit $? """ + INIT = """ DEVICE='' @@ -104,8 +105,7 @@ done if [ -z "${DEVICE}" ]; then echo "No LUKS device found to boot from! Giving up." sleep 3 - poweroff - exit + poweroff -f fi for i in 0 1 2 ; do