35 lines
1.3 KiB
Makefile
35 lines
1.3 KiB
Makefile
all:
|
|
echo OK
|
|
|
|
install-dependencies-rhel:
|
|
dnf install -y wget qemu-img
|
|
|
|
install-dependencies-kali:
|
|
apt update
|
|
apt install -y qemu-utils wget parted
|
|
|
|
download-rocky-8-base-image:
|
|
wget https://download.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2 -O /tmp/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2
|
|
ln -s /tmp/Rocky-8-GenericCloud-Base.latest.x86_64.qcow2 /tmp/rocky.qcow2
|
|
|
|
download-rocky-8-lvm-image:
|
|
wget https://download.rockylinux.org/pub/rocky/8/images/x86_64/Rocky-8-EC2-LVM.latest.x86_64.qcow2 -O /tmp/Rocky-8-EC2-LVM.latest.x86_64.qcow2
|
|
ln -s /tmp/Rocky-8-EC2-LVM.latest.x86_64.qcow2 /tmp/rocky.qcow2
|
|
|
|
download-rocky-9-base-image:
|
|
wget https://download.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2 -O /tmp/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2
|
|
ln -s /tmp/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2 /tmp/rocky.qcow2
|
|
|
|
download-rocky-9-lvm-image:
|
|
wget https://download.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-LVM.latest.x86_64.qcow2 -O /tmp/Rocky-9-GenericCloud-LVM.latest.x86_64.qcow2
|
|
ln -s /tmp/Rocky-9-GenericCloud-LVM.latest.x86_64.qcow2 /tmp/rocky.qcow2
|
|
|
|
write-image-to-sda:
|
|
qemu-img convert -p -f qcow2 -O raw /tmp/rocky.qcow2 /dev/sda
|
|
|
|
fix-gpt:
|
|
/bin/sh fix-gpt-free-space.sh
|
|
|
|
reboot:
|
|
reboot
|