summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-22 22:43:40 -0400
committerAndrew Cady <d@jerkface.net>2016-04-22 22:45:17 -0400
commitaf7cf70e4bccc6c7772a9ac15bcb4558f22cc9d5 (patch)
tree95c38c35ff58664be0a85982d699b39b9caa98de
parentab710e99bbbacdcb445776393ef627d8cb2d3574 (diff)
boot unlayered iso if layered is unavailable
-rwxr-xr-xqemu.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/qemu.sh b/qemu.sh
index ae23152..11c10f2 100755
--- a/qemu.sh
+++ b/qemu.sh
@@ -4,7 +4,9 @@
4# iso=debian-live-8.4.0-amd64-standard.iso 4# iso=debian-live-8.4.0-amd64-standard.iso
5iso=debian-live-8.4.0-amd64-standard.btrfs.iso 5iso=debian-live-8.4.0-amd64-standard.btrfs.iso
6disk=${iso%.iso}.disk 6disk=${iso%.iso}.disk
7iso=${iso%.iso}.layered.iso 7layered=${iso%.iso}.layered.iso
8
9[ -f "$layered" ] && iso=$layered
8 10
9./initrd.sh || { echo "./initrd.sh failed" >&2; exit 1; }; 11./initrd.sh || { echo "./initrd.sh failed" >&2; exit 1; };
10 12