diff options
author | Eric Hameleers <alien@slackware.com> | 2016-06-15 10:39:18 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2016-06-15 10:39:18 +0200 |
commit | ee32cb1ffb96484dd23ade86ac45c12aa8833bbb (patch) | |
tree | 342df0a24296dba938a61d3a8d2935018a8a9da4 | |
parent | 2505df82083f10a10828518f0be35b7d05153380 (diff) | |
download | liveslak-ee32cb1ffb96484dd23ade86ac45c12aa8833bbb.tar.gz liveslak-ee32cb1ffb96484dd23ade86ac45c12aa8833bbb.tar.xz |
liveinit: DEBUG=4 dumps you into a debug shell right before the switch_root.
After doing your debug checks you can then type "exit" to exit
the debug shell. The init script will continue with the switch_root
and boot the OS.
Diffstat (limited to '')
-rwxr-xr-x | liveinit | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -49,7 +49,8 @@ LIVEPATH="" VIRGIN=0 # Used for debugging the init; -# Set DEBUG to '1' to enable explicit pauses; '2' enables verbose script exec: +# Set DEBUG to '1' to enable explicit pauses; '2' enables verbose script exec; +# and '4' dumps you into a debug shell right before the switch_root: DEBUG=0 DEBUGV=" " @@ -214,7 +215,7 @@ done [ $DEBUG -ge 2 ] && set -x debugit () { - [ $DEBUG -eq 0 ] && return + [ $DEBUG -eq 0 -o $DEBUG -gt 3 ] && return echo "DEBUG>> -- blkid info -- :" blkid | while read LINE ; do echo "DEBUG>> $LINE" ; done echo "DEBUG>> -- mount info -- :" |