diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-21 00:42:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-21 00:42:09 +0000 |
commit | 1215fbb6a78217b82dd95bb639c239277c195397 (patch) | |
tree | 1bd24a5a327edb19b51cfd5959e12e33fd702595 /etc/rc.cdrom | |
parent | 65a1bbca2244b3d60e1f3b6bad03d65ce8b5c45d (diff) | |
download | pfsense-1215fbb6a78217b82dd95bb639c239277c195397.zip pfsense-1215fbb6a78217b82dd95bb639c239277c195397.tar.gz |
Use a MFS /home on CD-Rom.
Diffstat (limited to 'etc/rc.cdrom')
-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 c3a18aa..506d5df 100755 --- a/etc/rc.cdrom +++ b/etc/rc.cdrom @@ -33,6 +33,12 @@ if [ ! -f /conf/config.xml ]; then echo "done." fi +echo -n "Generating a MFS /home partition... " +device=$(mdconfig -a -t malloc -s ${partsize}) +newfs /dev/${device} > /dev/null 2>&1 +mount /dev/${device} /home +echo "done." + # Create some needed directories /bin/mkdir -p /var/db/pkg/ /bin/mkdir -p /var/tmp/vi.recover/ |