slitaz-dev-tools rev 85
Added ROOTFS_PKG and CHROOT_PKG options. Thanks Eric for the ROOTFS_PKG patch.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri May 06 18:49:21 2011 +0000 (2011-05-06) |
parents | 1c325594af61 |
children | 0ed022c04111 |
files | tazdev/tazdev tazdev/tazdev.conf |
line diff
1.1 --- a/tazdev/tazdev Sat May 07 00:42:52 2011 +0200 1.2 +++ b/tazdev/tazdev Fri May 06 18:49:21 2011 +0000 1.3 @@ -145,13 +145,20 @@ 1.4 gen_new_chroot() 1.5 { 1.6 echo -e "\nGenerating new chroot in : $rootfs" 1.7 - separator 1.8 - mkdir -p $rootfs 1.9 - for pkg in busybox libtaz tazwok tazchroot \ 1.10 - tazpkg slitaz-base-files 1.11 - do 1.12 - tazpkg get-install $pkg --root=$rootfs 1.13 - done 1.14 + separator 1.15 + mkdir -p $rootfs 1.16 + if [ "$ROOTFS_PKG" = "yes" ]; then 1.17 + for pkg in $CHROOT_PKG 1.18 + do 1.19 + tazpkg get-install $pkg --root=$rootfs 1.20 + done 1.21 + else 1.22 + cd $rootfs 1.23 + wget $DL_URL/boot/cooking/rootfs-base.gz 1.24 + echo -n "Extracting the rootfs..." 1.25 + lzma d rootfs-base.gz -so | cpio -id 1.26 + rm rootfs-base.gz 1.27 + fi 1.28 echo -n "Creating resolv.conf..." 1.29 cat /etc/resolv.conf > $rootfs/etc/resolv.conf 1.30 status
2.1 --- a/tazdev/tazdev.conf Sat May 07 00:42:52 2011 +0200 2.2 +++ b/tazdev/tazdev.conf Fri May 06 18:49:21 2011 +0000 2.3 @@ -10,6 +10,12 @@ 2.4 # Path to all own and copy projects. 2.5 PROJECTS="$HOME/Projects" 2.6 2.7 +# Install chroot with packages 2.8 +ROOTFS_PKG="no" 2.9 + 2.10 +# Packages for chroot 2.11 +CHROOT_PKGS="busybox libtaz tazwok tazchroot tazpkg slitaz-base-files" 2.12 + 2.13 # Main mirror to push and download (ISO, rootfs. etc). 2.14 MIRROR="mirror.slitaz.org" 2.15 DL_URL="http://mirror.switch.ch/ftp/mirror/slitaz"