summaryrefslogtreecommitdiffstats
path: root/release/extract.sh
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-11-17 11:53:14 +0000
committerjkh <jkh@FreeBSD.org>1994-11-17 11:53:14 +0000
commit403695a4c201383ec258529d32e21762769c1567 (patch)
tree9a7311ccacdb0b50e0a4eabd45553518b43fa05a /release/extract.sh
parent91b83599a74e7f38e442ffd2471a9a887656f4fb (diff)
downloadFreeBSD-src-403695a4c201383ec258529d32e21762769c1567.zip
FreeBSD-src-403695a4c201383ec258529d32e21762769c1567.tar.gz
Eliminate the use of cpio in extraction. The stupid thing whines too much,
and it doesn't support --unlink. I think it's time to nuke cpio completely out of the installation process, unless someone can think of a really good reason to keep it (and don't say multiple volume extraction since we a) don't use it anywhere anyway, and b) tar supports that too, now).
Diffstat (limited to 'release/extract.sh')
-rw-r--r--release/extract.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/release/extract.sh b/release/extract.sh
index e94b641..84c307f 100644
--- a/release/extract.sh
+++ b/release/extract.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# $Id: extract.sh,v 1.9 1994/11/11 23:27:05 jkh Exp $
-
+# $Id: extract.sh,v 1.10 1994/11/12 09:55:29 jkh Exp $
+PATH=/stand:$PATH
DDIR=/
if [ -f bin_tgz.aa ] ; then
@@ -8,10 +8,8 @@ if [ -f bin_tgz.aa ] ; then
if [ -f $DDIR/etc/myname ]; then
cp $DDIR/etc/hosts $DDIR/etc/myname $DDIR/stand/etc
fi
- echo; echo "Extracting bindist, please wait. Ignore any messages from"
- echo "cpio saying \"No such file or directory\". It doesn't know what"
- echo "it's talking about.."; echo
- cat bin_tgz.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV )
+ echo; echo "Extracting bindist, please wait."
+ cat bin_tgz.?? | gzip -c -d | tar --unlink -xvf - -C $DDIR
if [ -f $DDIR/stand/etc/myname ]; then
# Add back what the bindist nuked.
cp $DDIR/stand/etc/myname $DDIR/etc
@@ -29,6 +27,6 @@ do
mv /sbin/init /sbin/nondes_init
fi
echo "Extracting $b"
- cat $b.?? | zcat | ( cd $DDIR ; cpio -H tar -idumV )
+ cat $b.?? | gzip -c -d | tar --unlink -xvf - -C $DDIR
fi
done
OpenPOWER on IntegriCloud