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

svn at pcbsd.org svn at pcbsd.org
Wed Feb 10 12:12:02 PST 2010


Author: kris
Date: 2010-02-10 12:12:02 -0800 (Wed, 10 Feb 2010)
New Revision: 6223

Modified:
   pcbsd/trunk/pc-sysinstall/backend-query/update-part-list.sh
Log:

Cleanup the output of update-part-list



Modified: pcbsd/trunk/pc-sysinstall/backend-query/update-part-list.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend-query/update-part-list.sh	2010-02-10 20:05:08 UTC (rev 6222)
+++ pcbsd/trunk/pc-sysinstall/backend-query/update-part-list.sh	2010-02-10 20:12:02 UTC (rev 6223)
@@ -83,8 +83,8 @@
 
 file /bin/sh | sed "s/for FreeBSD/#/" | cut -d "#" -f 2 | cut -d "," -f 1 >/.fbver 2>/.fbver' >${FSMNT}/getver.sh 
 
-      chmod 755 ${FSMNT}/getver.sh >>/dev/null 2>>/dev/null
-      chroot ${FSMNT} /getver.sh >>${LOGOUT} 2>>${LOGOUT}
+      chmod 755 ${FSMNT}/getver.sh >/dev/null 2>/dev/null
+      chroot ${FSMNT} /getver.sh >/dev/null 2>/dev/null
       PCVER="`cat ${FSMNT}/.pcver 2>/dev/null`"
       FBVER="`cat ${FSMNT}/.fbver 2>/dev/null`"
        
@@ -105,29 +105,29 @@
       # If we are on ZFS, cleanup after the mount
       if [ ! -z "${ZROOT}" ]
       then
-        umount ${FSMNT}/bootdir >>${LOGOUT} 2>>${LOGOUT}
-        /bin/sh /tmp/TempUMount >>${LOGOUT} 2>>${LOGOUT}
+        umount ${FSMNT}/bootdir >/dev/null 2>/dev/null
+        /bin/sh /tmp/TempUMount >/dev/null 2>/dev/null
 
         # Unmount any extra fs from the zfs pool
-        zfs unmount -a >>${LOGOUT} 2>>${LOGOUT}
+        zfs unmount -a >/dev/null 2>/dev/null
 
-        umount ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+        umount ${FSMNT} >/dev/null 2>/dev/null
         rm /tmp/TempUMount >/dev/null 2>/dev/null
 
         # Remount the bootdir to /mnt
-        mount ${PART}a ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+        mount ${PART}a ${FSMNT} >/dev/null 2>/dev/null
 
         # Copy over our ZFS cache data
-        cp /boot/zfs/* ${FSMNT}/boot/zfs/ >>${LOGOUT} 2>>${LOGOUT}
+        cp /boot/zfs/* ${FSMNT}/boot/zfs/ >/dev/null 2>/dev/null 
 
         # Unmount the /bootdir partition again
-        umount ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+        umount ${FSMNT} >/dev/null 2>/dev/null
       else
         # Unmount FS
-        chroot ${FSMNT} /sbin/umount -a >>${LOGOUT} 2>>${LOGOUT}
-        umount ${FSMNT}/usr >>${LOGOUT} 2>>${LOGOUT}
-        umount ${FSMNT}/dev >>${LOGOUT} 2>>${LOGOUT}
-        umount ${FSMNT} >>${LOGOUT} 2>>${LOGOUT}
+        chroot ${FSMNT} /sbin/umount -a >/dev/null 2>/dev/null
+        umount ${FSMNT}/usr >/dev/null 2>/dev/null
+        umount ${FSMNT}/dev >/dev/null 2>/dev/null
+        umount ${FSMNT} >/dev/null 2>/dev/null
       fi
     
     fi # End of if ${i}a



More information about the Commits mailing list