summaryrefslogtreecommitdiffstats
path: root/etc/rc.cdrom
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-05-22 15:01:19 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-05-22 15:01:19 -0400
commitcdf97b133a5a443dfb2b9d2b8cd52b7b3a42d69f (patch)
tree38ca10a462f00919fef0b649c9953f669cb84aaa /etc/rc.cdrom
parenta57d6170198bf46e21a178732b32982ed8b8ab62 (diff)
downloadpfsense-cdf97b133a5a443dfb2b9d2b8cd52b7b3a42d69f.zip
pfsense-cdf97b133a5a443dfb2b9d2b8cd52b7b3a42d69f.tar.gz
Generate a MFS partition for / since ZFS likes to mount its disk on /
Diffstat (limited to 'etc/rc.cdrom')
-rwxr-xr-xetc/rc.cdrom6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.cdrom b/etc/rc.cdrom
index 2018fe9..c1eb8f3 100755
--- a/etc/rc.cdrom
+++ b/etc/rc.cdrom
@@ -39,6 +39,12 @@ 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