diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-22 22:43:40 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-22 22:45:17 -0400 |
commit | af7cf70e4bccc6c7772a9ac15bcb4558f22cc9d5 (patch) | |
tree | 95c38c35ff58664be0a85982d699b39b9caa98de | |
parent | ab710e99bbbacdcb445776393ef627d8cb2d3574 (diff) |
boot unlayered iso if layered is unavailable
-rwxr-xr-x | qemu.sh | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,9 @@ | |||
4 | # iso=debian-live-8.4.0-amd64-standard.iso | 4 | # iso=debian-live-8.4.0-amd64-standard.iso |
5 | iso=debian-live-8.4.0-amd64-standard.btrfs.iso | 5 | iso=debian-live-8.4.0-amd64-standard.btrfs.iso |
6 | disk=${iso%.iso}.disk | 6 | disk=${iso%.iso}.disk |
7 | iso=${iso%.iso}.layered.iso | 7 | layered=${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 | ||