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

Added debug param

This commit is contained in:
2022-05-31 19:41:22 +02:00
parent 54e24b89c9
commit 0a3932676c

View File

@@ -61,8 +61,9 @@ exit $?
INIT = """
DEVICE=''
KEYDEV=''
CLEAR=clear
clear
$CLEAR
export PATH=/bin
umask 0077
@@ -91,6 +92,9 @@ CMD=`cat /proc/cmdline`
for param in $CMD; do
if [ "${param}" == "rescue" ]; then
exec /bin/sh
elif [ "${param}" == "dbg" ]; then
set -x
CLEAR=''
fi
done
"""
@@ -146,7 +150,7 @@ done
INIT_OPEN = """
for counter in $(seq 3); do
sleep 1
clear
$CLEAR
for dev in /dev/sd* /dev/nvme*; do
if cryptsetup isLuks ${dev}; then
if [ $(cryptsetup luksUUID ${dev}) = "${UUID}" ]; then