diff --git a/bin/omarchy-iso-boot b/bin/omarchy-iso-boot index aa11a33..1a33634 100755 --- a/bin/omarchy-iso-boot +++ b/bin/omarchy-iso-boot @@ -3,7 +3,7 @@ set -e if [ $# -eq 0 ]; then - echo "Usage: omarchy-iso-boot [release/omarchy.iso]" + echo "Usage: omarchy-iso-boot [release/omarchy.iso] [reuse]" exit 1 fi @@ -12,7 +12,9 @@ if ! pacman -Q qemu-full >/dev/null || ! pacman -Q edk2-ovmf >/dev/null; then fi DISK="/tmp/omarchy-iso-boot.qcow2" -[ -f "$DISK" ] || qemu-img create -f qcow2 "$DISK" 20G +if [[ ! -f $DISK || $2 != "reuse" ]]; then + qemu-img create -f qcow2 "$DISK" 20G +fi cp /usr/share/edk2/x64/OVMF_VARS.4m.fd /tmp/OVMF_VARS.4m.fd