Commit | Line | Data |
---|---|---|
0e37945f JR |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | # temporary: download linaro-overlay packages, which provide | |
6 | # auto-serial-console. Plans for the future include providing | |
7 | # auto-serial-console in the Debian archive so we don't need this. | |
8 | PREFIX=https://launchpad.net/~linaro-maintainers/+archive/overlay/+files | |
9 | set -x | |
10 | while read line; do | |
11 | if ! echo "$line" | sha1sum --check --quiet - > /dev/null 2>&1; then | |
12 | package=$(echo "$line" | awk '{ print($2) }') | |
13 | echo "Downloading $package ..." | |
14 | wget --quiet $PREFIX/$package | |
15 | echo "$line" | sha1sum --check --quiet | |
16 | fi | |
17 | done < external-packages.sha1sum | |
18 | ||
19 | set -x | |
20 | sudo vmdebootstrap \ | |
21 | --custom-package='linaro-overlay_1112.2_all.deb' \ | |
22 | --custom-package='linaro-overlay-minimal_1112.2_all.deb' \ | |
23 | --enable-dhcp \ | |
24 | --serial-console --serial-console-command='/bin/auto-serial-console' \ | |
25 | --root-password='root' \ | |
26 | --verbose \ | |
27 | "$@" |