This commit is contained in:
Eliezer Croitoru 2023-02-09 14:41:30 -05:00
commit 7598909a50
2 changed files with 23 additions and 0 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
install-dependencies:
dnf install -y wget qemu-img
download-alam-9-bios-image:
wget https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2 -O /tmp/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2
ln -s /tmp/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2 /tmp/almalinux.qcow2
download-alam-8-uefi-image:
wget https://repo.almalinux.org/almalinux/8/cloud/x86_64/images/AlmaLinux-8-GenericCloud-UEFI-latest.x86_64.qcow2 -O /tmp/AlmaLinux-8-GenericCloud-UEFI-latest.x86_64.qcow2
ln -s /tmp/AlmaLinux-8-GenericCloud-UEFI-latest.x86_64.qcow2 /tmp/almalinux.qcow2
download-alam-8-bios-image:
wget https://repo.almalinux.org/almalinux/8/cloud/x86_64/images/AlmaLinux-8-GenericCloud-latest.x86_64.qcow2 -O /tmp/AlmaLinux-8-GenericCloud-latest.x86_64.qcow2
ln -s /tmp/AlmaLinux-8-GenericCloud-latest.x86_64.qcow2 /tmp/almalinux.qcow2
write-image-to-sda:
qemu-img convert -p -f qcow2 -O raw /tmp/almalinux.qcow2 /dev/sda
fix-gpt:
/bin/sh fix-gpt-free-space.sh

3
fix-gpt-free-space.sh Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
printf "fix\n" | parted ---pretend-input-tty /dev/sda print