summaryrefslogtreecommitdiffstats
path: root/scripts/upd-instroot
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-30 19:50:21 +0000
committerMatt Wilson <msw@redhat.com>2000-05-30 19:50:21 +0000
commit6533b9f252ab6ef35af588351e1a6ec7be25fc24 (patch)
tree806df960653228ce9f631a2066df4e8b4577527c /scripts/upd-instroot
parent4b6445eea9c485db969e110beff0ab212b7da811 (diff)
downloadanaconda-6533b9f252ab6ef35af588351e1a6ec7be25fc24.tar.gz
anaconda-6533b9f252ab6ef35af588351e1a6ec7be25fc24.tar.xz
anaconda-6533b9f252ab6ef35af588351e1a6ec7be25fc24.zip
split scrubbing out to arch buildhost
Diffstat (limited to 'scripts/upd-instroot')
-rwxr-xr-xscripts/upd-instroot15
1 files changed, 2 insertions, 13 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 34457da0f..74de9cd9d 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -467,7 +467,6 @@ for p in $DEST $DESTGR; do
mv $p/usr/lib/anaconda-runtime/lib* $p/usr/lib
mv $p/usr/lib/anaconda-runtime/collage $p/usr/bin
- (cd $p/usr/bin; ./collage | $p/usr/lib/anaconda-runtime/mkcollagelinks ./collage)
find $p -type d | xargs chmod 755
@@ -485,24 +484,14 @@ for p in $DEST $DESTGR; do
rm -rf $p/boot $p/home $p/root $p/tmp
- # Must create ld.so.conf, because ldconfig does not cache
- # dirs specified on the command line.
- touch $p/etc/ld.so.conf
- [ -d $p/usr/X11R6/lib ] && echo /usr/X11R6/lib > $p/etc/ld.so.conf
- (cd $p; chroot $p usr/sbin/ldconfig )
- rm -f $p/usr/sbin/ldconfig $p/etc/ld.so.conf
-
find $p -name "*.a" | grep -v "usr/X11R6/lib/modules" | xargs rm -rf
- for l in `find $p -type f -perm +100 | grep -v "usr/X11R6/lib/modules" | xargs file | sed -n 's/^\([^:]*\):.*ELF.*$/\1/p'`; do
- $STRIP $l -R .comment -R .note `objdump -h $l | \
- sed -n 's/^.*\(\.gnu\.warning\.[^ ]*\) .*$/-R \1/p'`
- done
-
(cd /usr/share/zoneinfo; find . -type f -or -type l |
grep '^./[A-Z]' | sort | sed 's/^..//' |
gzip -9) > $p/usr/lib/timezones.gz
+ REALPATH=`(cd $p; /bin/pwd)`
+ runroot dist-7.0 --arch $ARCH "cd $REALPATH\; usr/lib/anaconda-runtime/scrubtree $REALPATH"
echo -n -e "\rScrubbing trees..." "$(echo $p | sed 's/./ /g')"
done