diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-05-23 17:00:58 +0100 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-05-23 17:00:58 +0100 |
commit | 620fc8e91c92e0737eddbf9847329236402d06c3 (patch) | |
tree | 50cd7644647f9916573f316788d520a7c2c6fa27 | |
parent | 70022cda202193d4d847459c780210f7ff12d352 (diff) | |
download | genivi-initial-setup-620fc8e91c92e0737eddbf9847329236402d06c3.tar.gz |
Make run-built-arm-image support booting a different version subvolume
-rwxr-xr-x | run-built-arm-image.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/run-built-arm-image.sh b/run-built-arm-image.sh index 5a7edb0..ab9bb05 100755 --- a/run-built-arm-image.sh +++ b/run-built-arm-image.sh @@ -1,5 +1,14 @@ #!/bin/bash +# ./run-built-arm-image.sh KERNEL ROOTFS [VERSION] + +KERNEL="$1" +ROOTFS="$2" +VERSION="factory" +if [ -n "$3" ]; then + VERSION="$3" +fi + find_tunctl() { for path in `which tunctl` /{usr/,usr/local/}{bin,sbin}/tunctl; do if [ -x "$path" ]; then @@ -20,5 +29,5 @@ fi MACHINE=qemuarmv7 PATH="$PATH:$(pwd)" OE_TMPDIR=/ KERNEL="$1" ROOTFS="$2" \ sh ./runqemu serial \ - bootparams="rootflags=subvol=systems/version1/run root=/dev/mmcblk0" \ + bootparams="rootflags=subvol=systems/$VERSION/run root=/dev/mmcblk0" \ btrfs qemuparams="-m 1024 -M vexpress-a9" |