aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xskel/init6
-rw-r--r--skel/mnt/.keep0
2 files changed, 5 insertions, 1 deletions
diff --git a/skel/init b/skel/init
index 62e8b52..d8a130d 100755
--- a/skel/init
+++ b/skel/init
@@ -17,12 +17,16 @@ rescue() {
}
root=$(var root)
+if ! echo "$root" | grep -q '^/dev/';then
+ root=$(findfs "$root")
+fi
init=$(var init)
[ -z "$init" ] && init="/sbin/init"
fsck -p "$root" || rescue
-mount -o ro $(findfs "$root") /mnt/root || rescue
+mkdir /mnt/root
+mount -o ro "$root" /mnt/root || rescue
arg rescue && rescue
diff --git a/skel/mnt/.keep b/skel/mnt/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/skel/mnt/.keep