From af47b16bdc76608b7edb17fa6b80c18e53c775ec Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Fri, 5 Feb 2010 23:38:28 +0100 Subject: Respect rootfstype command line parameter --- init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'init') 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 -- cgit v1.2.3-24-g4f1b