[arch-projects] [mkinitcpio] init_functions: add check for 9p rootfs

Kieran Colford kieran at kcolford.com
Wed Dec 21 19:34:01 UTC 2016

Currently, having rootfs on a 9p filesystem causes an emergency shell
to pop up that must be closed before boot can continue.  This is
because we assume that the ``root`` parameter to the kernel will
always be a block device, which is not the case when the rootfs is on
a 9p filesystem.  Adding another check to make sure we're not a 9p
filesystem fixes this early emergency shell.
 init_functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init_functions b/init_functions
index d5a584e..75ba615 100644
--- a/init_functions
+++ b/init_functions
@@ -374,7 +374,7 @@ resolve_device() {
 default_mount_handler() {
-    if [ ! -b "$root" ]; then
+    if [ ! -b "$root" ] && [ "$rootfstype" != "9p" ]; 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"

More information about the arch-projects mailing list