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

svn at pcbsd.org svn at pcbsd.org
Sat Mar 16 19:30:43 PDT 2013


Author: kris
Date: 2013-03-17 02:30:43 +0000 (Sun, 17 Mar 2013)
New Revision: 21886

Modified:
   pcbsd/current/build-files/scripts/rc-resizeusb
Log:

Commit a fix in how we resize USB media on the live stick. Should fix the glabel
being mangled during growfs



Modified: pcbsd/current/build-files/scripts/rc-resizeusb
===================================================================
--- pcbsd/current/build-files/scripts/rc-resizeusb	2013-03-17 02:24:11 UTC (rev 21885)
+++ pcbsd/current/build-files/scripts/rc-resizeusb	2013-03-17 02:30:43 UTC (rev 21886)
@@ -29,11 +29,15 @@
 {
   dev="$1"
   rdev=`echo $dev | rev | cut -c 2- | rev`
+  glabel stop PCBSDUSB
+  glabel clear ${dev}
   echo "Resizing file-system $dev on $rdev, this may take a few minutes..."
-  sleep 5 
+  sleep 3 
   echo "Adjusting partition tables on $rdev..."
   gpart resize -i 1 $rdev >/dev/null 2>/dev/null
-  sleep 5 
+  sleep 3
+  glabel label PCBSDUSB ${dev}
+  sleep 3 
   echo "Running growfs on ${dev}, this may take a while..."
   growfs -y /dev/$dev >/dev/null 2>/dev/null
 }



More information about the Commits mailing list