summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-07 21:57:45 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-07 21:57:45 +0100
commitba97db07a5bcbc5c0db2241a2f8ac4117d05c8f3 (patch)
tree65dcc72d88f4b6f479e88e6ec6852bd2bc15a58f /init
parent0d7759576490af59d7fc54871495ef8bca9e56aa (diff)
downloadmkinitcpio-ba97db07a5bcbc5c0db2241a2f8ac4117d05c8f3.tar.gz
mkinitcpio-ba97db07a5bcbc5c0db2241a2f8ac4117d05c8f3.tar.xz
Honor the rootflags= command line option
This fixes FS#18213.
Diffstat (limited to 'init')
-rw-r--r--init2
1 files changed, 1 insertions, 1 deletions
diff --git a/init b/init
index cfa6c75..6a78965 100644
--- a/init
+++ b/init
@@ -158,7 +158,7 @@ if [ -z "${nfsroot}" -a "${root}" != "/dev/nfs" ]; then
else
fstype=$(eval $(/sbin/blkid -o udev -p "${root}"); echo $ID_FS_TYPE)
fi
- mount ${fstype:+-t ${fstype}} -o ro "${root}" /new_root
+ mount ${fstype:+-t ${fstype}} -o ro${rootflags:+,${rootflags}} "${root}" /new_root
else
# TODO: Actually implement this
err "Mounting NFS root is not implemented yet."