[PC-BSD Commits] r18531 - pcbsd/current/build-files/scripts

svn at pcbsd.org svn at pcbsd.org
Tue Aug 21 12:07:36 PDT 2012


Author: kris
Date: 2012-08-21 19:07:36 +0000 (Tue, 21 Aug 2012)
New Revision: 18531

Modified:
   pcbsd/current/build-files/scripts/makemfs-resizeusb.sh
Log:

Improve the mfsroot setup script, enable it booting by default



Modified: pcbsd/current/build-files/scripts/makemfs-resizeusb.sh
===================================================================
--- pcbsd/current/build-files/scripts/makemfs-resizeusb.sh	2012-08-21 18:54:26 UTC (rev 18530)
+++ pcbsd/current/build-files/scripts/makemfs-resizeusb.sh	2012-08-21 19:07:36 UTC (rev 18531)
@@ -34,7 +34,14 @@
 # Create the FS now
 makefs -b 4000 -o label=USBRESIZE mfsroot tmpmnt
 gzip -9 mfsroot
+mv mfsroot.gz /boot/
 
+# Enable the new mfsroot loading
+echo "rootfs_load=\"YES\"" >> /boot/loader.conf
+echo "rootfs_type=\"mfs_root\"" >> /boot/loader.conf
+echo "rootfs_name=\"/boot/mfsroot\"" >> /boot/loader.conf
+echo "vfs.root.mountfrom=\"ufs:md0\"" >> /boot/loader.conf
+
 # Remove tmp
 chflags -R noschg tmpmnt
 rm -rf tmpmnt



More information about the Commits mailing list