disk-from-cloud-image/alma-disk-from-qcow/Makefile

28 lines
1.1 KiB
Makefile
Raw Normal View History

2023-11-26 21:03:45 +02:00
all:
echo OK
install-dependencies-rhel:
2023-11-14 21:52:09 +02:00
dnf install -y wget qemu-img
2023-11-26 21:03:45 +02:00
install-dependencies-kali:
apt update
apt install -y qemu-utils wget parted
2023-11-14 21:52:09 +02:00
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