diff options
Diffstat (limited to 'inc/bootstrap.inc.sh')
-rw-r--r-- | inc/bootstrap.inc.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/inc/bootstrap.inc.sh b/inc/bootstrap.inc.sh new file mode 100644 index 0000000..0f0648e --- /dev/null +++ b/inc/bootstrap.inc.sh @@ -0,0 +1,36 @@ + +bootsrap () { + [ ! -d $buildrootpath ] && mkdir -p $buildrootpath + + echo "broot is going to run debootsrap now: ~-_" + echo " depending on your machine/connection this can _-~ " + echo " take up to 20min.. time enough for a coffee ;) c|_| " + echo "press Strg-c to abbort" + echo -n "Starting debootsrap in .. " + echo -en "${R}3${NONE} " && sleep 1 && \ + echo -en "${R}2${NONE} " && sleep 1 && \ + echo -en "${R}1${NONE} " && sleep 1 && \ + echo ".. go " + + debootstrap 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 + 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 + + destroyBindmounts + +} |