aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-04-16 18:01:25 +0000
committerBill Nottingham <notting@redhat.com>2007-04-16 18:01:25 +0000
commitd74c1e5ce961db9069151fc9fe6a68294783cbe8 (patch)
tree0db085a3ead852029c0ea6437b8a2ce8d92da1ec
parent5b9183c7022ff4493484f3746581c3ebfca8dc7a (diff)
downloadinitscripts-d74c1e5ce961db9069151fc9fe6a68294783cbe8.tar
initscripts-d74c1e5ce961db9069151fc9fe6a68294783cbe8.tar.gz
initscripts-d74c1e5ce961db9069151fc9fe6a68294783cbe8.tar.bz2
initscripts-d74c1e5ce961db9069151fc9fe6a68294783cbe8.tar.xz
initscripts-d74c1e5ce961db9069151fc9fe6a68294783cbe8.zip
backport size setting
-rwxr-xr-xrc.d/rc.sysinit4
-rw-r--r--sysconfig/readonly-root4
2 files changed, 6 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index b028649b..ffa7a7e5 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
diff --git a/sysconfig/readonly-root b/sysconfig/readonly-root
index 6407c07e..7c369892 100644
--- a/sysconfig/readonly-root
+++ b/sysconfig/readonly-root
@@ -7,7 +7,11 @@ TEMPORARY_STATE=no
RW_MOUNT=/var/lib/stateless/writable
# Label on local filesystem which can be used for temporary scratch space
RW_LABEL=stateless-rw
+# Options to use for temporary mount
+RW_OPTIONS=
# Label for partition with persistent data
STATE_LABEL=stateless-state
# Where to mount to the persistent data
STATE_MOUNT=/.snapshot
+# Options to use for peristent mount
+STATE_OPTIONS=