diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-06-09 02:30:01 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-06-09 02:30:01 +0200 |
commit | 217935fee7e4d962080e2b16885608e586f593eb (patch) | |
tree | ae15e30d4924a96ef6ac669832645bcc573bd2d5 | |
parent | 9976544bd43c93a1ebc490439280e083142a8f3d (diff) | |
download | pfsense-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-x | etc/rc | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |