set -e
+user=`whoami`
+
sudo vmdebootstrap \
- --owner $(whoami) --verbose \
+ --owner ${user} --verbose \
--size 3G \
--mirror http://http.debian.net/debian \
--log cubietruck.log --log-level debug \
--distribution sid \
--serial-console-command "/sbin/getty -L ttyS0 115200 vt100" \
--customize "cubietruck-customise.sh" \
- --serial-console-command \
- --bootsize 50m --boottype vfat \
+ --bootoffset=2mib \
+ --bootsize 100mib --boottype vfat \
"$@"