slitaz-modular rev 96
Update tazbb script. Now you can execute a command in chroot. Need full path for this to work.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed May 11 13:27:12 2011 +0000 (2011-05-11) |
parents | 905f35e75c3a |
children | b36817b1adbb |
files | initramfs/usr/bin/tazbb |
line diff
1.1 --- a/initramfs/usr/bin/tazbb Sun May 08 17:28:23 2011 +0000 1.2 +++ b/initramfs/usr/bin/tazbb Wed May 11 13:27:12 2011 +0000 1.3 @@ -22,8 +22,9 @@ 1.4 1.5 [ -d $chroot_dir ] || create_chroot 1.6 1.7 -mount_chroot 1.8 -chroot $LOCAL_REPOSITORY/chroot /usr/bin/tank-bot 1.9 -#chroot $LOCAL_REPOSITORY/chroot tazwok cook bash 1.10 -umount_chroot 1.11 +if [ -x $LOCAL_REPOSITORY/chroot/$1 ]; then 1.12 + mount_chroot 1.13 + chroot $LOCAL_REPOSITORY/chroot $1 1.14 + umount_chroot 1.15 +fi 1.16