tazwok rev 433 4.2.7
Fix: Use bind to mount systems dirs. This way filesystem permissions on host are not altered.
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Mar 08 22:15:05 2011 +0100 (2011-03-08) |
parents | 98c5ddc23fd6 |
children | 556a89fc8607 8631c61d240d |
files | tazwok |
line diff
1.1 --- a/tazwok Tue Mar 08 22:07:11 2011 +0100 1.2 +++ b/tazwok Tue Mar 08 22:15:05 2011 +0100 1.3 @@ -2248,10 +2248,10 @@ 1.4 $( [ "$undigest" ] && echo ' mkdir -p $chroot_dir$LOCALSTATE/undigest/$SLITAZ_VERSION 1.5 echo "$SLITAZ_DIR/$SLITAZ_VERSION/packages" > $chroot_dir$LOCALSTATE/undigest/$SLITAZ_VERSION/mirror' ) 1.6 echo -e "\${LOCAL_REPOSITORY##*/}-incoming\nmain" > \$chroot_dir\$LOCALSTATE/priority 1.7 - mount -t proc proc \$chroot_dir/proc 1.8 - mount -t sysfs sysfs \$chroot_dir/sys 1.9 - mount -t devpts devpts \$chroot_dir/dev/pts 1.10 - mount -t tmpfs shm \$chroot_dir/dev/shm 1.11 + mount -o bind proc \$chroot_dir/proc 1.12 + mount -o bind sys \$chroot_dir/sys 1.13 + mount -o bind /dev/pts \$chroot_dir/dev/pts 1.14 + mount -o bind /dev/shm \$chroot_dir/dev/shm 1.15 for dir in \$list_dir; do 1.16 mkdir -p \$dir \$chroot_dir\$dir 1.17 mount \$dir \$chroot_dir\$dir