From 3be8e9b55a4aac5e2987cee41315cfecb88ba3cb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 24 Mar 2015 13:32:20 -0400 Subject: [PATCH] installkernel: improve s390 logic --- .bin/installkernel | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.bin/installkernel b/.bin/installkernel index 2a598d5..6180eb6 100755 --- a/.bin/installkernel +++ b/.bin/installkernel @@ -21,9 +21,19 @@ case ${img} in ;; */s390/*) + pushd /lib/modules >/dev/null + for v in * ; do + [[ -d ${v} ]] || continue + [[ -e ${dir}/image-${v} ]] && continue + echo rm -rf ${PWD}/${v} + done + popd >/dev/null + + rm -f ${dir}/{config,System.map}-${ver}.xz cp ${img} ${dir}/image-${ver} cp ${map} ${dir}/System.map-${ver} cp .config ${dir}/config-${ver} + xz -9f ${dir}/{config,System.map}-${ver} ln -sf image-${ver} ${dir}/image zipl exit 0 -- 2.39.5