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

svn at pcbsd.org svn at pcbsd.org
Fri Oct 26 08:43:32 PDT 2007


Author: kris
Date: 2007-10-26 08:43:31 -0700 (Fri, 26 Oct 2007)
New Revision: 798

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

Fixed the infamous bug with tar failing when using a lot of partitions during
the installer



Modified: pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh
===================================================================
--- pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh	2007-10-24 15:12:25 UTC (rev 797)
+++ pcbsd/trunk/installcd-overlay/usr/local/pcbsd/scripts/PCBSD.ExtractTar.sh	2007-10-26 15:43:31 UTC (rev 798)
@@ -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