[PC-BSD Commits] r585 - pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Fri Aug 10 14:32:30 PDT 2007


Author: kris
Date: 2007-08-10 14:32:29 -0700 (Fri, 10 Aug 2007)
New Revision: 585

Added:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.UpgradeFindLinks.sh
Modified:
   pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh
Log:

Fixed the upgrade process so now all PBI-created links in /usr/local will
be identified and preserved. Should fix all problems with PBIs breaking
after upgrade. 



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh	2007-08-09 21:52:09 UTC (rev 584)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.MountUpgrade.sh	2007-08-10 21:32:29 UTC (rev 585)
@@ -40,9 +40,12 @@
 mv /mnt/root /mnt/tmp/upgradebackup/root
 
 
+# Search for any links that PBIs may have created
+echo "Searching for PBI created links..."
+/usr/local/pcbsd/scripts/PCBSD.UpgradeFindLinks.sh >/mnt/saveLinks
+tar cvf /mnt/tmp/links.tar -T /mnt/saveLinks >/dev/null 2>/dev/null
 
 
-
 echo "Cleaning up old installation..."
 chflags -R noschg /mnt
 mv /mnt/usr/ports /mnt/ports 2>/dev/null
@@ -94,6 +97,10 @@
 
 cd /
 
+# Extract the saved PBI links
+tar xvf /mnt/tmp/links.tar >/dev/null 2>/dev/null
+rm /mnt/tmp/links.tar 2>/dev/null
+
 # Make directories for src / obj / ports
 mkdir /mnt/usr/src >/dev/null 2>/dev/null
 mkdir /mnt/usr/obj >/dev/null 2>/dev/null

Added: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.UpgradeFindLinks.sh



More information about the Commits mailing list