summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-03-04 01:17:20 +0100
committerDave Reisner <dreisner@archlinux.org>2012-03-04 17:59:39 +0100
commit51b80faab94b01e195fc8e731a116fd44ff83738 (patch)
tree308f1f5de813fa4967d7bf75fb5c2de62b9dc59f
parentba954f4ec460e54948c4d20a0187d345a1c6a4de (diff)
downloadmkinitcpio-51b80faab94b01e195fc8e731a116fd44ff83738.tar.gz
mkinitcpio-51b80faab94b01e195fc8e731a116fd44ff83738.tar.xz
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 <dreisner@archlinux.org>
-rw-r--r--init1
-rw-r--r--init_functions1
2 files changed, 2 insertions, 0 deletions
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