diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-03 23:11:11 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-03 23:11:11 -0500 |
commit | 2300307e5fb9c0214aa94210cd345dc914ce19af (patch) | |
tree | 6bcc30918187c71799e3bffbc876aa2a0948ba28 | |
parent | d44e7dc081d01eb106cbc5d4871a88b683ee3b9e (diff) | |
download | pfsense-2300307e5fb9c0214aa94210cd345dc914ce19af.zip pfsense-2300307e5fb9c0214aa94210cd345dc914ce19af.tar.gz |
de-activate sync on upgrade where it's enabled now that the root passwd/group problem is fixed. Ticket #4523
-rw-r--r-- | tmp/pre_upgrade_command | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tmp/pre_upgrade_command b/tmp/pre_upgrade_command index 5bfd891..2ad365f 100644 --- a/tmp/pre_upgrade_command +++ b/tmp/pre_upgrade_command @@ -6,11 +6,11 @@ PRIOR_VERSION=`uname -r | cut -d'.' -f1` echo $PRIOR_VERSION > /tmp/pre_upgrade_version -# Activate sync on root filesystem. See ticket #4523 +# De-activate sync on root filesystem. See ticket #4523 # Back up original fstab /bin/cp /etc/fstab /etc/fstab.orig -# Activate sync on the root slice only. This will not match NanoBSD since it already has sync,noatime -/usr/bin/sed -i '' 's/^\(\/.*[[:space:]]*\/[[:space:]]*ufs[[:space:]]*\)rw\([[:space:]]*[[:digit:]][[:space:]]*[[:digit:]]\)$/\1rw,sync\2/' /etc/fstab +# De-activate sync on the root slice only. This will not match NanoBSD since it already has sync,noatime +/usr/bin/sed -i '' 's/^\(\/.*[[:space:]]*\/[[:space:]]*ufs[[:space:]]*\)rw,sync\([[:space:]]*[[:digit:]][[:space:]]*[[:digit:]]\)$/\1rw\2/' /etc/fstab # Hack to workaround ticket #3749 if [ ${PRIOR_VERSION} -le 8 ] && grep -q 'sh /etc/rc.reboot' /etc/rc.firmware; then |