diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2016-09-30 13:26:54 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2016-09-30 13:26:54 +0200 |
commit | f0cb31b66921f1c2b70c0f774086cc0c99a40920 (patch) | |
tree | f638d9a150ff3d8330cb47ac9b1ea23eb33dc770 /examples/build_gold_image/build_ubuntu1510.sh | |
parent | b66fbd3625294684a659ed072b0e797185ae31b4 (diff) | |
download | biruda-f0cb31b66921f1c2b70c0f774086cc0c99a40920.tar.gz biruda-f0cb31b66921f1c2b70c0f774086cc0c99a40920.tar.bz2 |
update Ubuntu gold image build script from 15.10 to 16.04
Diffstat (limited to 'examples/build_gold_image/build_ubuntu1510.sh')
-rwxr-xr-x | examples/build_gold_image/build_ubuntu1510.sh | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/examples/build_gold_image/build_ubuntu1510.sh b/examples/build_gold_image/build_ubuntu1510.sh deleted file mode 100755 index 1339f0f..0000000 --- a/examples/build_gold_image/build_ubuntu1510.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/bin/sh - -# Ubuntu 15.10 - -export PATH=/bin:/sbin:/usr/bin:/usr/sbin:${PATH} - -ARCH=$1 - -if test "x$ARCH" = "x"; then - echo "One argument expected (architecture)" 1>&2 - exit 1 -fi - -case $ARCH in - i686) - PACKAGE_ARCH=i386 - ARCH_SWITCH=linux32 - ;; - - x86_64) - PACKAGE_ARCH=amd64 - ARCH_SWITCH= - ;; - - *) - echo "Unsupported architecture '$ARCH'" 1>&2 - exit 1 -esac - -CHROOT_DIR=ubuntu1510-${ARCH} - -rm -rf $CHROOT_DIR - -mkdir $CHROOT_DIR - -debootstrap --verbose --arch=${PACKAGE_ARCH} --variant=minbase wily $CHROOT_DIR http://ch.archive.ubuntu.com/ubuntu/ - -${ARCH_SWITCH} chroot ${CHROOT_DIR} apt-key update -${ARCH_SWITCH} chroot ${CHROOT_DIR} apt-get update - -cat >> $CHROOT_DIR/root/.bash_profile <<EOF -export PATH=\$PATH:/usr/sbin:/usr/bin:/sbin:/bin -export PS1='[ubuntu1510:\u@\h \W]\$ ' -EOF - -# development stuff - -${ARCH_SWITCH} chroot ${CHROOT_DIR} apt-get -y install make gcc g++ build-essentials debhelper |