diff --git a/Makefile b/Makefile index f150abc..83d6a25 100644 --- a/Makefile +++ b/Makefile @@ -20,3 +20,6 @@ sysprep: dnf clean all cloud-init clean echo -n "" > /etc/machine-id + +cleanup-old-kernels: + dnf remove -y --oldinstallonly --setopt installonly_limit=2 kernel