summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
Diffstat (limited to 'init')
-rw-r--r--init6
1 files changed, 5 insertions, 1 deletions
diff --git a/init b/init
index 6064f14..508c473 100644
--- a/init
+++ b/init
@@ -151,7 +151,11 @@ if [ -z "${nfsroot}" -a "${root}" != "/dev/nfs" ]; then
fi
# We didn't build filesystem support into busybox,
# instead we use util-linux-ng's blkid for best compatibility
- fstype=$(eval $(/sbin/blkid -o udev -p "${root}"); echo $ID_FS_TYPE)
+ if [ -n "${rootfstype}" ]; then
+ fstype="${rootfstype}"
+ else
+ fstype=$(eval $(/sbin/blkid -o udev -p "${root}"); echo $ID_FS_TYPE)
+ fi
mount ${fstype:+-t ${fstype}} -o ro "${root}" /new_root
else
# TODO: Actually implement this