summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-07-30 20:46:10 +0000
committerJeremy Katz <katzj@redhat.com>2004-07-30 20:46:10 +0000
commit274aef55268a16dd5afe1770072016d767d6fcd2 (patch)
tree13902e1c3e1665aae262cbf427b53e472a7455c0 /scripts
parent9e605902d842a0e8e79d9d1fe8c8d2fe842a2627 (diff)
downloadanaconda-274aef55268a16dd5afe1770072016d767d6fcd2.tar.gz
anaconda-274aef55268a16dd5afe1770072016d767d6fcd2.tar.xz
anaconda-274aef55268a16dd5afe1770072016d767d6fcd2.zip
add some error checking to try to figure out why trees are blowing up on some
arches
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index c87c9757e..112fdfca3 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -803,6 +803,11 @@ echo "retrieving timezones"
TZDIR=/tmp/glibc-timezone-$$
mkdir -p $TZDIR/usr/share/zoneinfo
rpm2cpio $TZDATA | (cd $TZDIR; cpio --quiet -iumd usr/share/zoneinfo ./usr/share/zoneinfo ./usr/share/zoneinfo/* usr/share/zoneinfo/*)
+if [ $? != 0 ]; then
+ echo "ERROR: Unable to expand timezone data ($TZDATA)"
+ echo "Aborting instroot creation..."
+ exit 1
+fi
(cd $TZDIR; tar cSpf - $TIMEZONES) | (cd $DEST; tar xSpf -)
(cd $TZDIR; tar cSpf - $TIMEZONES) | (cd $DESTGR; tar xSpf -)