From af7cf70e4bccc6c7772a9ac15bcb4558f22cc9d5 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Fri, 22 Apr 2016 22:43:40 -0400 Subject: boot unlayered iso if layered is unavailable --- qemu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qemu.sh') diff --git a/qemu.sh b/qemu.sh index ae23152..11c10f2 100755 --- a/qemu.sh +++ b/qemu.sh @@ -4,7 +4,9 @@ # iso=debian-live-8.4.0-amd64-standard.iso iso=debian-live-8.4.0-amd64-standard.btrfs.iso disk=${iso%.iso}.disk -iso=${iso%.iso}.layered.iso +layered=${iso%.iso}.layered.iso + +[ -f "$layered" ] && iso=$layered ./initrd.sh || { echo "./initrd.sh failed" >&2; exit 1; }; -- cgit v1.2.3