diff options
author | Thomas Bächler <thomas@archlinux.org> | 2010-02-05 23:38:28 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-02-05 23:38:28 +0100 |
commit | af47b16bdc76608b7edb17fa6b80c18e53c775ec (patch) | |
tree | 089aa3547b39e131712bd44624a9379acdb24a84 /init | |
parent | 7504fd6be397ac154ecd61ffab7b9fbafddc4a0c (diff) | |
download | mkinitcpio-af47b16bdc76608b7edb17fa6b80c18e53c775ec.tar.gz mkinitcpio-af47b16bdc76608b7edb17fa6b80c18e53c775ec.tar.xz |
Respect rootfstype command line parameter
Diffstat (limited to 'init')
-rw-r--r-- | init | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |