slitaz-modular view initramfs/usr/bin/tazbb @ 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
line source
1 #!/bin/sh
3 LOCAL_REPOSITORY="$SLITAZ_DIR/${undigest:-$SLITAZ_VERSION}"
4 if [ -f $LOCAL_REPOSITORY/tazchroot.conf ]; then
5 . $LOCAL_REPOSITORY/tazchroot.conf
6 else
7 tazwok configure-chroot
8 . $LOCAL_REPOSITORY/tazchroot.conf
9 fi
11 if [ -f $LOCAL_REPOSITORY/slitaz.conf ]; then
12 . $LOCAL_REPOSITORY/slitaz.conf
13 else
14 . /etc/slitaz/slitaz.conf
15 fi
17 if [ -f $LOCAL_REPOSITORY/tazwok.conf ]; then
18 . $LOCAL_REPOSITORY/tazwok.conf
19 else
20 . /etc/slitaz/tazwok.conf
21 fi
23 [ -d $chroot_dir ] || create_chroot
25 if [ -x $LOCAL_REPOSITORY/chroot/$1 ]; then
26 mount_chroot
27 chroot $LOCAL_REPOSITORY/chroot $1
28 umount_chroot
29 fi