diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-03-04 01:17:20 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-03-04 17:59:39 +0100 |
commit | 51b80faab94b01e195fc8e731a116fd44ff83738 (patch) | |
tree | 308f1f5de813fa4967d7bf75fb5c2de62b9dc59f | |
parent | ba954f4ec460e54948c4d20a0187d345a1c6a4de (diff) | |
download | mkinitcpio-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-- | init | 1 | ||||
-rw-r--r-- | init_functions | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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 |