By default we should be wiping things clean
This commit is contained in:
1 parent
1184f1f84d
commit
0c91e351ea
1 file changed
+4
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user