aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-04-13 22:48:20 +0000
committerBill Nottingham <notting@redhat.com>2007-04-13 22:48:20 +0000
commit0f55775b938c8a1051f18e73af63bfd9a298d890 (patch)
tree638ae4ee625ceaf5957914c7bfec060362f93410 /rc.d
parent0d8faa9b6e4c72680f3666234cae6ad6465735da (diff)
downloadinitscripts-0f55775b938c8a1051f18e73af63bfd9a298d890.tar
initscripts-0f55775b938c8a1051f18e73af63bfd9a298d890.tar.gz
initscripts-0f55775b938c8a1051f18e73af63bfd9a298d890.tar.bz2
initscripts-0f55775b938c8a1051f18e73af63bfd9a298d890.tar.xz
initscripts-0f55775b938c8a1051f18e73af63bfd9a298d890.zip
add options for mounting state (#234916)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index dff9bbe0..8b42d2f1 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -536,7 +536,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
elif [ x$rw_mount_dev != x ] && mount $rw_mount_dev $mountopts "$RW_MOUNT" > /dev/null 2>&1; then
rm -rf "$RW_MOUNT" > /dev/null 2>&1
else
- mount -n -t tmpfs $mountopts none "$RW_MOUNT"
+ mount -n -t tmpfs $RW_OPTIONS $mountopts none "$RW_MOUNT"
fi
for file in /etc/rwtab /etc/rwtab.d/* ; do
@@ -583,7 +583,7 @@ if [ "$READONLY" = "yes" -o "$TEMPORARY_STATE" = "yes" ]; then
# First try to mount persistent data from /etc/fstab, then any
# partition with the proper label, then fallback to NFS
state_mount_dev=$(blkid -t LABEL="$STATE_LABEL" -o device | awk '{ print ; exit }')
- if mount $mountopts "$STATE_MOUNT" > /dev/null 2>&1 ; then
+ if mount $mountopts $STATE_OPTIONS "$STATE_MOUNT" > /dev/null 2>&1 ; then
/bin/true
elif [ x$state_mount_dev != x ] && mount $state_mount_dev $mountopts "$STATE_MOUNT" > /dev/null 2>&1; then
/bin/true