[PC-BSD Commits] r8195 - pcbsd/current/src-qt4/pc-sysinstaller

svn at pcbsd.org svn at pcbsd.org
Fri Dec 10 14:10:10 PST 2010


Author: kris
Date: 2010-12-10 14:10:09 -0800 (Fri, 10 Dec 2010)
New Revision: 8195

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp
Log:

Create 500MB /boot UFS partition when doing auto-ZFS, fixes issues booting from zfs only on MBR



Modified: pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp	2010-12-10 17:33:48 UTC (rev 8194)
+++ pcbsd/current/src-qt4/pc-sysinstaller/sys-diskwidget.cpp	2010-12-10 22:10:09 UTC (rev 8195)
@@ -445,6 +445,10 @@
           swapsize = 512;
        totalSize = totalSize - swapsize;
 
+       // Setup a UFS boot partition
+       totalSize = totalSize - 500;
+       fileSystem << targetDisk << targetSlice << "/boot" << "UFS" << tmp.setNum(500) << "" << "";
+
        // Add the main zfs pool with standard partitions
        fileSystem << targetDisk << targetSlice << "/,/var,/usr" << "ZFS" << tmp.setNum(totalSize) << "" << "";
        qDebug() << "Auto-Gen FS:" <<  fileSystem;



More information about the Commits mailing list