# HG changeset patch # User Christopher Rogers # Date 1304707761 0 # Node ID 6aa7281d09690539550b9d22e585b3304933b468 # Parent 1c325594af610da23b439093d0fccf9ca1e29a11 Added ROOTFS_PKG and CHROOT_PKG options. Thanks Eric for the ROOTFS_PKG patch. diff -r 1c325594af61 -r 6aa7281d0969 tazdev/tazdev --- a/tazdev/tazdev Sat May 07 00:42:52 2011 +0200 +++ b/tazdev/tazdev Fri May 06 18:49:21 2011 +0000 @@ -145,13 +145,20 @@ gen_new_chroot() { echo -e "\nGenerating new chroot in : $rootfs" - separator - mkdir -p $rootfs - for pkg in busybox libtaz tazwok tazchroot \ - tazpkg slitaz-base-files - do - tazpkg get-install $pkg --root=$rootfs - done + separator + mkdir -p $rootfs + if [ "$ROOTFS_PKG" = "yes" ]; then + for pkg in $CHROOT_PKG + do + tazpkg get-install $pkg --root=$rootfs + done + else + cd $rootfs + wget $DL_URL/boot/cooking/rootfs-base.gz + echo -n "Extracting the rootfs..." + lzma d rootfs-base.gz -so | cpio -id + rm rootfs-base.gz + fi echo -n "Creating resolv.conf..." cat /etc/resolv.conf > $rootfs/etc/resolv.conf status diff -r 1c325594af61 -r 6aa7281d0969 tazdev/tazdev.conf --- a/tazdev/tazdev.conf Sat May 07 00:42:52 2011 +0200 +++ b/tazdev/tazdev.conf Fri May 06 18:49:21 2011 +0000 @@ -10,6 +10,12 @@ # Path to all own and copy projects. PROJECTS="$HOME/Projects" +# Install chroot with packages +ROOTFS_PKG="no" + +# Packages for chroot +CHROOT_PKGS="busybox libtaz tazwok tazchroot tazpkg slitaz-base-files" + # Main mirror to push and download (ISO, rootfs. etc). MIRROR="mirror.slitaz.org" DL_URL="http://mirror.switch.ch/ftp/mirror/slitaz"