From 0c91e351eac565454d64daa321ce5253104b353c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 23 Aug 2025 22:47:36 +0200 Subject: [PATCH] By default we should be wiping things clean --- bin/omarchy-iso-boot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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