diff options
author | Matt Wilson <msw@redhat.com> | 2000-09-07 16:14:03 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-09-07 16:14:03 +0000 |
commit | c2ea7707c64f9f330708d17ae46abfab1b376dcf (patch) | |
tree | 75916adf90caf86b0fdacd95db039a846a9020e9 /scripts | |
parent | 747ef7dc1d308510ee641c259b3342652948f84f (diff) | |
download | anaconda-c2ea7707c64f9f330708d17ae46abfab1b376dcf.tar.gz anaconda-c2ea7707c64f9f330708d17ae46abfab1b376dcf.tar.xz anaconda-c2ea7707c64f9f330708d17ae46abfab1b376dcf.zip |
mount proc in chroot
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/scrubtree | 3 |
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 | \ |