From 51b80faab94b01e195fc8e731a116fd44ff83738 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sat, 3 Mar 2012 19:17:20 -0500 Subject: init: add informational output about mounting Applies to both the real root and any device that's mounted on /usr Signed-off-by: Dave Reisner --- init | 1 + init_functions | 1 + 2 files changed, 2 insertions(+) diff --git a/init b/init index bb9401d..1f5f865 100644 --- a/init +++ b/init @@ -93,6 +93,7 @@ if [ -f "$realtab" ]; then if usr_source=$(findmnt -snero source --tab-file="$realtab" /usr); then mountopts=$(findmnt -snero options --tab-file="$realtab" /usr) fsck_device "$usr_source" + msg ":: mounting '$usr_source' on /usr" mount "$usr_source" /new_root/usr -o "$mountopts" fi fi diff --git a/init_functions b/init_functions index bf6f11a..400bff3 100644 --- a/init_functions +++ b/init_functions @@ -227,6 +227,7 @@ default_mount_handler() { msg "Trying to continue (this will most likely fail) ..." fi + msg ":: mounting '$root' on real root" if ! mount ${fstype:+-t $fstype} -o ${rwopt:-ro}${rootflags:+,$rootflags} "$root" "$1"; then echo "You are now being dropped into an emergency shell." launch_interactive_shell -- cgit v1.2.3-24-g4f1b