Skip to content
Snippets Groups Projects
Commit 15cab4d0 authored by Dave Reisner's avatar Dave Reisner
Browse files

init: drop pre-mount check for block device

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
parent f6275f0d
No related branches found
No related tags found
No related merge requests found
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment