summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-09-06 04:13:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-09-06 04:13:00 +0000
commita8d5dba40c1a239c2cb9dc12a45a5c386c67682b (patch)
treecb34d2e2a6fd0b68bb319545dcef04cea09ad031
parentc75c3809e1f3106b54573959d46719288fb4023c (diff)
downloadpfsense-a8d5dba40c1a239c2cb9dc12a45a5c386c67682b.zip
pfsense-a8d5dba40c1a239c2cb9dc12a45a5c386c67682b.tar.gz
* Mount /root unionfs writable
* Move unionfs mounting to earlier in the sequence
-rwxr-xr-xetc/rc20
1 files changed, 12 insertions, 8 deletions
diff --git a/etc/rc b/etc/rc
index fabc4f4..48d734a 100755
--- a/etc/rc
+++ b/etc/rc
@@ -121,6 +121,18 @@ fi
chmod 1777 /tmp
if [ ! "$PLATFORM" = "cdrom" ] ; then
+ mkdir /tmp/unionfs
+ mkdir /tmp/unionfs/usr
+ mkdir /tmp/unionfs/root
+ echo -n "Mounting unionfs directories: "
+ echo -n "usr"
+ mount_unionfs /tmp/unionfs/usr /usr/
+ echo -n " root"
+ mount_unionfs /tmp/unionfs/root /root/
+ echo "done."
+fi
+
+if [ ! "$PLATFORM" = "cdrom" ] ; then
# Malloc debugging check
if [ -L /etc/malloc.conf ]; then
#ln -s aj /etc/malloc.conf
@@ -352,14 +364,6 @@ minicron 240 /var/run/ping_hosts.pid /usr/local/bin/ping_hosts.sh
chmod a+rw /tmp/.
-if [ ! "$PLATFORM" = "cdrom" ] ; then
- mkdir /tmp/unionfs
- mkdir /tmp/unionfs/usr
- echo -n "Mounting /usr/ read/write..."
- mount_unionfs /tmp/unionfs/usr /usr/
- echo "done."
-fi
-
echo "Bootup complete"
/usr/local/bin/beep.sh start 2>&1 >/dev/null
OpenPOWER on IntegriCloud