From 0181b177c2866e80ce15b7e7cd8c68c32b44f941 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Thu, 17 Oct 2013 11:51:44 +0100 Subject: [PATCH] Remove old-kernels for fedora Remove the old kernels on fedora to save some space in the image. Change-Id: Ia7ace63c286052713ac1ef3092373cc2712db11a --- elements/fedora/finalise.d/01-clean-old-kernels.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 elements/fedora/finalise.d/01-clean-old-kernels.sh diff --git a/elements/fedora/finalise.d/01-clean-old-kernels.sh b/elements/fedora/finalise.d/01-clean-old-kernels.sh new file mode 100755 index 000000000..8c34e0988 --- /dev/null +++ b/elements/fedora/finalise.d/01-clean-old-kernels.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +install-packages yum-utils + +package-cleanup --oldkernels -y --count=1