summaryrefslogtreecommitdiffstats
path: root/init_functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-03-11 18:25:32 +0100
committerDave Reisner <dreisner@archlinux.org>2017-03-11 19:09:10 +0100
commit15cab4d017c7cc46b8234bfa641fcef2b28207b6 (patch)
treea32e7d1cf6aa0f8e1b9498952e6787feb71814bf /init_functions
parentf6275f0d91c8ad06bf0847eb7542755b8ea9e3c7 (diff)
downloadmkinitcpio-23.tar.gz
mkinitcpio-23.tar.xz
init: drop pre-mount check for block devicev23
Not all root devices are block devices, after all. Rely on mount doing the right thing (or not). ref: https://bugs.archlinux.org/task/45118 ref: https://bugs.archlinux.org/task/35529
Diffstat (limited to 'init_functions')
-rw-r--r--init_functions8
1 files changed, 0 insertions, 8 deletions
diff --git a/init_functions b/init_functions
index dfe2036..8ad10c7 100644
--- a/init_functions
+++ b/init_functions
@@ -374,14 +374,6 @@ resolve_device() {
}
default_mount_handler() {
- if [ ! -b "$root" ]; then
- err "Unable to find root device '$root'."
- echo "You are being dropped to a recovery shell"
- echo " Type 'exit' to try and continue booting"
- launch_interactive_shell
- msg "Trying to continue (this will most likely fail) ..."
- fi
-
msg ":: mounting '$root' on real root"
if ! mount ${rootfstype:+-t $rootfstype} -o ${rwopt:-ro}${rootflags:+,$rootflags} "$root" "$1"; then
echo "You are now being dropped into an emergency shell."