From: Mike Frysinger Date: Tue, 24 Mar 2015 17:32:20 +0000 (-0400) Subject: installkernel: improve s390 logic X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3be8e9b55a4aac5e2987cee41315cfecb88ba3cb;p=home.git installkernel: improve s390 logic --- 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