gentooup: debug output for saving current kernel functionality

This commit is contained in:
layman 2018-12-11 21:55:35 +01:00
parent 629378937a
commit 30348485de

View file

@ -119,6 +119,7 @@ echo Started at "$STARTDATE"
#make sure that current kernel sources are kept:
CURRENTKERNELVERSION="$(uname -r)"
echo current installed kernel:"${CURRENTKERNELVERSION/"-gentoo"/}"
emerge --no-replace gentoo-sources:"${CURRENTKERNELVERSION/"-gentoo"/}"
emerge -a "${PORTAGE_OPTIONS[@]}" --depclean
if [[ "$(grep -c gentoo-sources /var/lib/portage/world)" -gt 2 ]] ; then