summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-05-22 16:30:05 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-05-22 16:30:05 -0400
commit0fd819189920c3227a73450c91d9deaf46640ca2 (patch)
tree6966aa01f73d736794bbb790ee1b34e2edb79a3c /etc
parent22af75a3af0b55904f45e6ea001c5b05fa09291a (diff)
downloadpfsense-0fd819189920c3227a73450c91d9deaf46640ca2.zip
pfsense-0fd819189920c3227a73450c91d9deaf46640ca2.tar.gz
Use unionfs for /
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc3
-rwxr-xr-xetc/rc.cdrom6
2 files changed, 3 insertions, 6 deletions
diff --git a/etc/rc b/etc/rc
index 97ceee5..3d2ad5b 100755
--- a/etc/rc
+++ b/etc/rc
@@ -112,6 +112,7 @@ if [ "$PLATFORM" = "cdrom" ] ; then
mkdir /tmp/unionfs/bin
mkdir /tmp/unionfs/boot
mkdir /tmp/unionfs/confdefault
+ mkdir /tmp/unionfs/diskroot
echo -n "Mounting unionfs directories:"
echo -n " usr"
mount_unionfs /tmp/unionfs/usr /usr/
@@ -125,6 +126,8 @@ if [ "$PLATFORM" = "cdrom" ] ; then
mount_unionfs /tmp/unionfs/boot /boot/
echo -n " conf.default"
mount_unionfs /tmp/unionfs/confdefault /conf.default/
+ echo -n " /"
+ mount_unionfs /tmp/unionfs/diskroot /
echo "... done."
fi
diff --git a/etc/rc.cdrom b/etc/rc.cdrom
index c1eb8f3..2018fe9 100755
--- a/etc/rc.cdrom
+++ b/etc/rc.cdrom
@@ -39,12 +39,6 @@ newfs /dev/${device} > /dev/null 2>&1
mount /dev/${device} /home
echo "done."
-echo -n "Generating a MFS / partition... "
-device=$(mdconfig -a -t malloc -s ${partsize})
-newfs /dev/${device} > /dev/null 2>&1
-mount /dev/${device} /
-echo "done."
-
# Create some needed directories
/bin/mkdir -p /var/db/pkg/
/bin/mkdir -p /var/tmp/vi.recover/
OpenPOWER on IntegriCloud