[PC-BSD Commits] r799 - pcbsd/branches/1.4/installcd-overlay/usr/local/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Fri Oct 26 08:44:28 PDT 2007


Author: kris
Date: 2007-10-26 08:44:28 -0700 (Fri, 26 Oct 2007)
New Revision: 799

Modified:
   pcbsd/branches/1.4/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh
Log:

Backed ported the fix for tar error during install process into 1.4.1



Modified: pcbsd/branches/1.4/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh
===================================================================
--- pcbsd/branches/1.4/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh	2007-10-26 15:43:31 UTC (rev 798)
+++ pcbsd/branches/1.4/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh	2007-10-26 15:44:28 UTC (rev 799)
@@ -11,13 +11,20 @@
 LC_CTYPE="" ; export LC_CTYPE
 LC_COLLATE="" ; export LC_COLLATE
 
+# Make our pipe file
+mkfifo /mnt/tarpipe
 
-lzma d -so /cdmnt/PCBSD.tar.lzma 2>/dev/null | tar xvpj -f - >&1 2>&1
+(sleep 2; nice -n -20 tar xvpf /mnt/tarpipe >&1 2>&1) &
+
+nice -n -20 lzma d -so /cdmnt/PCBSD.tar.lzma >/mnt/tarpipe
 if [ "$?" != "0" ]
 then
   exit 1
 fi
 
+# Delete the pipefile
+rm /mnt/tarpipe
+
 mkdir /mnt/dev >/dev/null
 mkdir /mnt/mnt >/dev/null
 



More information about the Commits mailing list