Better messaging in the init sequence scripts.

This commit is contained in:
Ivan Davidov 2016-05-05 02:08:18 +03:00
parent 727dbfc0df
commit c83c5d6b25
2 changed files with 10 additions and 8 deletions

View File

@ -40,8 +40,9 @@
# Print message on screen. # Print message on screen.
cat << CEOF cat << CEOF
Wait 5 seconds or press SPACE key to continue with the system initialization Press empty key (ESC, TAB, SPACE, ENTER) or wait 5 seconds to continue with
process, or press any other key for PID 1 shell outside the initramfs area. the system initialization process. Press any other key for PID 1 rescue shell
outside of the initramfs area.
CEOF CEOF
@ -55,8 +56,8 @@ if [ "$key" = "" ] ; then
else else
# Print message on screen. # Print message on screen.
cat << CEOF cat << CEOF
This is PID 1 shell outside of the initramfs area. Execute the following in This is PID 1 rescue shell outside of the initramfs area. Execute the
order to continue with the system initialization. following in order to continue with the system initialization:
exec /sbin/init exec /sbin/init

View File

@ -34,8 +34,9 @@ echo "Welcome to \"Minimal Linux Live\" (/init)"
# Print message on screen. # Print message on screen.
cat << CEOF cat << CEOF
Wait 5 seconds or press SPACE key to continue with the overlay initialization Press empty key (ESC, TAB, SPACE, ENTER) or wait 5 seconds to continue with
process, or press any other key for PID 1 shell inside the initramfs area. the overlay initialization process. Press any other key for PID 1 rescue shell
inside the initramfs area.
CEOF CEOF
@ -45,8 +46,8 @@ read -t 5 -n1 -s key
if [ ! "$key" = "" ] ; then if [ ! "$key" = "" ] ; then
# Print message on screen. # Print message on screen.
cat << CEOF cat << CEOF
This is PID 1 shell inside the initramfs area. Execute the following in order This is PID 1 rescue shell inside the initramfs area. Execute the following in
to continue with the overlay initialization process. order to continue with the overlay initialization process:
exec /etc/02_overlay.sh exec /etc/02_overlay.sh