diff --git a/03_create_hdd_disk.sh b/03_create_hdd_disk.sh new file mode 100755 index 0000000..4bf29e6 --- /dev/null +++ b/03_create_hdd_disk.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +qemu-img create -f qcow2 melawy.img 50G diff --git a/03_boot.sh b/04_boot.sh similarity index 92% rename from 03_boot.sh rename to 04_boot.sh index 0edb080..e07f0e6 100644 --- a/03_boot.sh +++ b/04_boot.sh @@ -9,7 +9,8 @@ cp -av -- '/usr/share/edk2-ovmf/x64/OVMF_VARS.fd' "./out/" qemu-system-x86_64 \ -boot order=d,menu=on,reboot-timeout=5000 \ --cdrom ./out/melawy-linux-2023.10.03-x86_64.iso \ +-cdrom ./out/$(ls -1 | grep "\.iso" | tail -n 1) \ +-drive file=melawy.img,index=0,media=disk,format=qcow2 \ -smbios type=0,uefi=on \ -smp cpus=$virt_cpu \ -m "size=3072,slots=0,maxmem=$((3072*1024*1024))" \