1
0
mirror of https://github.com/gryf/mkinitramfs.git synced 2025-12-18 20:10:24 +01:00

Force to poweroff, otherwise kerel panic would result instead.

This commit is contained in:
2022-03-23 07:15:27 +01:00
parent 76e8532369
commit b04d83262c

View File

@@ -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