bootstrap-alma-8-cloud-image/Makefile
Eliezer Croitoru 8a19ea495a 3
2024-01-27 22:01:47 +00:00

26 lines
641 B
Makefile

PACKAGES := $(shell cat common-tools)
all:
echo OK
upgrade:
dnf check-update
dnf update -y
update-gpg-keys:
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
curl "https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinu" -o "/etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux.in" && mv "/etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux.in" "/etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux"
install-common-tools:
dnf check-update
echo $(PACKAGES)
dnf install -y $(PACKAGES)
sysprep:
dnf clean all
cloud-init clean
echo -n "" > /etc/machine-id
cleanup-old-kernels:
dnf remove -y --oldinstallonly --setopt installonly_limit=2 kernel