[PC-BSD Commits] r5537 - pcbsd/trunk/pc-sysinstall/backend

svn at pcbsd.org svn at pcbsd.org
Thu Dec 10 10:45:41 PST 2009


Author: kris
Date: 2009-12-10 10:45:41 -0800 (Thu, 10 Dec 2009)
New Revision: 5537

Modified:
   pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh
Log:


Added support for loading procfs / linprocfs for PC-BSD installs to the backend



Modified: pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh	2009-12-10 16:28:42 UTC (rev 5536)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-cleanup.sh	2009-12-10 18:45:41 UTC (rev 5537)
@@ -58,7 +58,7 @@
   rm ${FSTAB} >/dev/null 2>/dev/null
 
   # Create the header
-  echo "# Device		Mountpoint	FStype	Options	Dump Pass#" >> ${FSTAB}
+  echo "# Device		Mountpoint		FStype		Options	Dump Pass#" >> ${FSTAB}
 
   # Loop through the partitions, and start creating /etc/fstab
   for PART in `ls ${PARTDIR}`
@@ -107,14 +107,21 @@
       # Echo out the fstab entry now
       if [ "${PARTFS}" = "SWAP" ]
       then
-        echo "/dev/${DEVICE}	none		swap	sw	0	0" >> ${FSTAB}
+        echo "/dev/${DEVICE}	none			swap		sw	0	0" >> ${FSTAB}
       else
-        echo "/dev/${DEVICE}  	${PARTMNT}		ufs	rw	1	1" >> ${FSTAB}
+        echo "/dev/${DEVICE}  	${PARTMNT}			ufs		rw	1	1" >> ${FSTAB}
       fi
 
     fi # End of ZFS Check
   done
 
+  # Setup some specific PC-BSD fstab options
+  if [ "$INSTALLTYPE" != "FreeBSD" ]
+  then
+    echo "procfs		/proc			procfs		rw	0	0" >> ${FSTAB}
+    echo "linprocfs		/compat/linux/proc	linprocfs	rw	0	0" >> ${FSTAB}
+  fi
+
 };
 
 # Setup our disk mirroring with gmirror



More information about the Commits mailing list