summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-05 23:38:28 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-05 23:38:28 +0100
commitaf47b16bdc76608b7edb17fa6b80c18e53c775ec (patch)
tree089aa3547b39e131712bd44624a9379acdb24a84
parent7504fd6be397ac154ecd61ffab7b9fbafddc4a0c (diff)
downloadmkinitcpio-af47b16bdc76608b7edb17fa6b80c18e53c775ec.tar.gz
mkinitcpio-af47b16bdc76608b7edb17fa6b80c18e53c775ec.tar.xz
Respect rootfstype command line parameter
-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