From e55744bb195f0d665332ceb48acb57b4a4e186b5 Mon Sep 17 00:00:00 2001 From: ficus Date: Tue, 11 Sep 2012 01:16:38 +0200 Subject: update to FBx public-0.1 freedom-maker Snapshot commit with no torouter-specific changes re-applied. Updated freedom-maker image to a significantly more recent version, used by the FreedomBox project. This includes a shift from debian "stable" to "testing" (wheezy), which has a Linux 3.2 kernel. date Fri, 24 Aug 2012 03:50:41 +0000 repo git://anonscm.debian.org/freedombox/freedom-maker.git commit de1f66f0651a3a7c306331eeda1db93535b1470a (public-0.1) --- freedom-maker/mk_virtualbox_image | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 freedom-maker/mk_virtualbox_image (limited to 'freedom-maker/mk_virtualbox_image') diff --git a/freedom-maker/mk_virtualbox_image b/freedom-maker/mk_virtualbox_image new file mode 100755 index 0000000..abdd730 --- /dev/null +++ b/freedom-maker/mk_virtualbox_image @@ -0,0 +1,31 @@ +#!/bin/bash + +# Ensure git\VBoxManage is installed +# Get vmdebootstrap code +# Run vmdebootstrap script to create image +# Convert image to vdi hard drive + +# don't tolerate errors. +set -e + +basedir=`pwd` +IMAGE=$1 + +# Get vmdebootstrap code +rm -rf vmdebootstrap +git clone git://gitorious.org/~nickdaly/vmdebootstrap/nickdalys-vmdebootstrap.git + +# Run vmdebootstrap script to create image +sudo ./vmdebootstrap/vmdebootstrap --log freedombox.log --log-level debug --image $IMAGE.img --hostname freedombox \ + --size 1G --verbose --enable-dhcp --package ssh --package apache2 --package git --package mercurial \ + --package build-essential --package checkinstall --package python-simplejson \ + --mirror http://ftp.uk.debian.org/debian/ --package pandoc --package python-cheetah \ + --package python-argparse \ + --customize=$basedir/freedombox-customize --root-password=password1 --arch=i386 + +# Convert image to vdi hard drive +VBoxManage convertdd $IMAGE.img $IMAGE.vdi + +#mkdir testing +#sudo mount -o loop,offset=1048576 freedombox.img testing/ +#sudo umount testing/ -- cgit v1.2.3