From 7598909a50e8c81816708b9ded043e6168660c86 Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Thu, 9 Feb 2023 14:41:30 -0500 Subject: [PATCH] 1 --- Makefile | 20 ++++++++++++++++++++ fix-gpt-free-space.sh | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 Makefile create mode 100644 fix-gpt-free-space.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9b56deb --- /dev/null +++ b/Makefile @@ -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 diff --git a/fix-gpt-free-space.sh b/fix-gpt-free-space.sh new file mode 100644 index 0000000..4d2c533 --- /dev/null +++ b/fix-gpt-free-space.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +printf "fix\n" | parted ---pretend-input-tty /dev/sda print