diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-05-22 15:01:19 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-05-22 15:01:19 -0400 |
commit | cdf97b133a5a443dfb2b9d2b8cd52b7b3a42d69f (patch) | |
tree | 38ca10a462f00919fef0b649c9953f669cb84aaa | |
parent | a57d6170198bf46e21a178732b32982ed8b8ab62 (diff) | |
download | pfsense-cdf97b133a5a443dfb2b9d2b8cd52b7b3a42d69f.zip pfsense-cdf97b133a5a443dfb2b9d2b8cd52b7b3a42d69f.tar.gz |
Generate a MFS partition for / since ZFS likes to mount its disk on /
-rwxr-xr-x | etc/rc.cdrom | 6 |
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/ |