wok diff mirror-tools/stuff/slitaz/INSTALL @ rev 3898
slitaz-loram-cdrom: allow frugal install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 15 10:40:49 2009 +0200 (2009-08-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mirror-tools/stuff/slitaz/INSTALL Sat Aug 15 10:40:49 2009 +0200 1.3 @@ -0,0 +1,14 @@ 1.4 +#!/bin/sh 1.5 +DIR=$(dirname $0) 1.6 +MOUNTS="/proc /sys /dev/pts /dev/shm" 1.7 +cp /etc/resolv.conf etc 1.8 +for i in $MOUNTS; do 1.9 + [ -d $i ] && mount --bind $i $DIR/$i 1.10 +done 1.11 +#mount --bind /var/tmp tmp 1.12 +mount --bind /tmp tmp || mount -t tmpfs tmpfs tmp 1.13 +SHELL=/bin/ash chroot $DIR /bin/ash - 1.14 +umount tmp 1.15 +for i in $MOUNTS; do 1.16 + umount $DIR/$i 1.17 +done