mirror of
https://github.com/gryf/mkinitramfs.git
synced 2025-12-18 20:10:24 +01:00
Added debug param
This commit is contained in:
@@ -61,8 +61,9 @@ exit $?
|
|||||||
INIT = """
|
INIT = """
|
||||||
DEVICE=''
|
DEVICE=''
|
||||||
KEYDEV=''
|
KEYDEV=''
|
||||||
|
CLEAR=clear
|
||||||
|
|
||||||
clear
|
$CLEAR
|
||||||
export PATH=/bin
|
export PATH=/bin
|
||||||
umask 0077
|
umask 0077
|
||||||
|
|
||||||
@@ -91,6 +92,9 @@ CMD=`cat /proc/cmdline`
|
|||||||
for param in $CMD; do
|
for param in $CMD; do
|
||||||
if [ "${param}" == "rescue" ]; then
|
if [ "${param}" == "rescue" ]; then
|
||||||
exec /bin/sh
|
exec /bin/sh
|
||||||
|
elif [ "${param}" == "dbg" ]; then
|
||||||
|
set -x
|
||||||
|
CLEAR=''
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
"""
|
"""
|
||||||
@@ -146,7 +150,7 @@ done
|
|||||||
INIT_OPEN = """
|
INIT_OPEN = """
|
||||||
for counter in $(seq 3); do
|
for counter in $(seq 3); do
|
||||||
sleep 1
|
sleep 1
|
||||||
clear
|
$CLEAR
|
||||||
for dev in /dev/sd* /dev/nvme*; do
|
for dev in /dev/sd* /dev/nvme*; do
|
||||||
if cryptsetup isLuks ${dev}; then
|
if cryptsetup isLuks ${dev}; then
|
||||||
if [ $(cryptsetup luksUUID ${dev}) = "${UUID}" ]; then
|
if [ $(cryptsetup luksUUID ${dev}) = "${UUID}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user