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

svn at pcbsd.org svn at pcbsd.org
Mon Dec 14 11:38:44 PST 2009


Author: kris
Date: 2009-12-14 11:38:44 -0800 (Mon, 14 Dec 2009)
New Revision: 5600

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

Do a bit of cleanup on upgrades of PC-BSD systems



Modified: pcbsd/trunk/pc-sysinstall/backend/functions-upgrade.sh
===================================================================
--- pcbsd/trunk/pc-sysinstall/backend/functions-upgrade.sh	2009-12-14 19:30:31 UTC (rev 5599)
+++ pcbsd/trunk/pc-sysinstall/backend/functions-upgrade.sh	2009-12-14 19:38:44 UTC (rev 5600)
@@ -43,6 +43,15 @@
   echo_log "Cleaning up old filesystem... Please wait..."
   rc_halt "chflags -R noschg ${FSMNT}"
 
+  # If we are doing PC-BSD install, lets cleanup old pkgs on disk
+  if [ "$INSTALLTYPE" != "FreeBSD" ]
+  then
+    run_chroot_cmd "pkg_delete -f \*"
+    run_chroot_cmd "rm -rf /usr/PCBSD"
+    run_chroot_cmd "rm -rf /PCBSD"
+    run_chroot_cmd "rm -rf /var/db/pkgs"
+  fi
+
 }
 
 # Mount the target upgrade partitions



More information about the Commits mailing list