summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-06-09 02:30:01 +0200
committerErmal LUÇI <eri@pfsense.org>2015-06-09 02:30:01 +0200
commit217935fee7e4d962080e2b16885608e586f593eb (patch)
treeae15e30d4924a96ef6ac669832645bcc573bd2d5
parent9976544bd43c93a1ebc490439280e083142a8f3d (diff)
downloadpfsense-217935fee7e4d962080e2b16885608e586f593eb.zip
pfsense-217935fee7e4d962080e2b16885608e586f593eb.tar.gz
Restore the file system in R/W mode during most of rc script seems required on nano. Should unbreak nanobsd
-rwxr-xr-xetc/rc15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 1ab96bc..0477156 100755
--- a/etc/rc
+++ b/etc/rc
@@ -74,6 +74,13 @@ if [ ! "${PLATFORM}" = "cdrom" ]; then
attempts=$((attempts+1))
done
+ if [ "${PLATFORM}" = "nanobsd" ]; then
+ # XXX This script does need all filesystems rw!!!!
+ # Put this workaround for now until better ways are found.
+ /sbin/mount -u -w -o sync,noatime /
+ /sbin/mount -u -w -o sync,noatime /cf
+ fi
+
# If /conf is a directory, convert it to a symlink to /cf/conf
if [ -d "/conf" ]; then
# If item is not a symlink then rm and recreate
@@ -397,6 +404,14 @@ echo -n "Launching the init system..."
/bin/rm -f /cf/conf/backup/backup.cache
/bin/rm -f /root/lighttpd*
/usr/bin/touch $varrunpath/booting
+
+if [ "${PLATFORM}" = "nanobsd" ]; then
+ # XXX This script does need all filesystems rw!!!!
+ # Put this workaround for now until better ways are found.
+ /sbin/mount -u -f -r -o sync,noatime /
+ /sbin/mount -u -f -r -o sync,noatime /cf
+fi
+
/etc/rc.bootup
# /etc/rc.bootup unset $g['booting'], and removes file
OpenPOWER on IntegriCloud