diff options
author | Sebastian | 2010-04-09 13:39:41 +0200 |
---|---|---|
committer | Sebastian | 2010-04-09 13:39:41 +0200 |
commit | dcf741d1497b0f05a97ad0f20bddc6b2440bf67d (patch) | |
tree | 0b9d509e0f9af2a2c56b5196b88f75a9e9e15c17 /inc/bootstrap.inc.sh | |
parent | added bootstrap 1.0.22 (diff) | |
download | broot-dcf741d1497b0f05a97ad0f20bddc6b2440bf67d.tar.gz broot-dcf741d1497b0f05a97ad0f20bddc6b2440bf67d.tar.xz broot-dcf741d1497b0f05a97ad0f20bddc6b2440bf67d.zip |
added caching
fixed use of contrib bootstrap
Diffstat (limited to 'inc/bootstrap.inc.sh')
-rw-r--r-- | inc/bootstrap.inc.sh | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/inc/bootstrap.inc.sh b/inc/bootstrap.inc.sh index c7965bd..7822b96 100644 --- a/inc/bootstrap.inc.sh +++ b/inc/bootstrap.inc.sh @@ -11,25 +11,35 @@ bootstrap () { echo -en "${R}2${NONE} " && sleep 1 && \ echo -en "${R}1${NONE} " && sleep 1 && \ echo ".. go " + + export DEBOOTSTRAP_DIR="$BROOT_BASE_DIR/contrib/debootstrap" + + mkdir -p "$buildrootpath/root/bin" + + mkdir -p "/tmp/deb/partial" + mkdir -p "$buildrootpath/var/cache/apt/archives" + mount -o bind "/tmp/deb" "$buildrootpath/var/cache/apt/archives" + + $DEBOOTSTRAP_DIR/debootstrap --arch="i386" squeeze $buildrootpath http://ftp.de.debian.org/debian - debootstrap --arch="i386" squeeze $buildrootpath http://ftp.de.debian.org/debian touch $buildrootpath/bootstraped + sed -i -e "s,main,main non-free," $buildrootpath/etc/apt/sources.list setupBindmounts $buildrootpath updatebuildroot $buildrootpath chroot-exec aptitude update - chroot-apt-installinstall locales + + chroot-aptinstall locales sed -i -e "s,^#.*\(en_US.*\)$,\1," $buildrootpath/etc/locale.gen chroot-exec locale-gen chroot-aptinstall build-essential chroot-aptinstall git-core subversion chroot-aptinstall firmware-iwlwifi firmware-linux firmware-linux-free firmware-linux-nonfree linux-image-2.6.32-trunk-686-bigmem - mkdir -p $buildrootpath/root/bin cp ./chroot-scripts/* $buildrootpath/root/bin/ chmod 700 $buildrootpath/root/bin/* - chroot-exec /root/bin/build-bb.sh + # chroot-exec /root/bin/build-bb.sh destroyBindmounts |