summaryrefslogtreecommitdiffstats
path: root/scripts/scrubtree
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-09-07 16:14:03 +0000
committerMatt Wilson <msw@redhat.com>2000-09-07 16:14:03 +0000
commitc2ea7707c64f9f330708d17ae46abfab1b376dcf (patch)
tree75916adf90caf86b0fdacd95db039a846a9020e9 /scripts/scrubtree
parent747ef7dc1d308510ee641c259b3342652948f84f (diff)
downloadanaconda-c2ea7707c64f9f330708d17ae46abfab1b376dcf.tar.gz
anaconda-c2ea7707c64f9f330708d17ae46abfab1b376dcf.tar.xz
anaconda-c2ea7707c64f9f330708d17ae46abfab1b376dcf.zip
mount proc in chroot
Diffstat (limited to 'scripts/scrubtree')
-rwxr-xr-xscripts/scrubtree3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/scrubtree b/scripts/scrubtree
index 2172cf9cd..1f0617ff3 100755
--- a/scripts/scrubtree
+++ b/scripts/scrubtree
@@ -17,11 +17,14 @@ fi
# Must create ld.so.conf, because ldconfig does not cache
# dirs specified on the command line.
touch $p/etc/ld.so.conf
+mkdir $p/proc
+mount -t proc proc $p/proc
[ -d $p/usr/X11R6/lib ] && echo /usr/X11R6/lib > $p/etc/ld.so.conf
(cd $p; /usr/sbin/chroot $p usr/sbin/ldconfig )
rm -f $p/usr/sbin/ldconfig $p/etc/ld.so.conf
(cd $p/usr/bin; ./collage | $p/usr/lib/anaconda-runtime/mkcollagelinks ./collage)
+umount $p/proc
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 | \