From 958558e0a0753b7f99ceedc632b635a29a6eae7a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 15 Jun 2017 13:34:37 +0200 Subject: reproducible Debian: add check for more than one kernel installed (only on Ubuntu systems) Signed-off-by: Holger Levsen --- bin/reproducible_node_health_check.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bin/reproducible_node_health_check.sh') diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh index 12a5f218..ea4266dd 100755 --- a/bin/reproducible_node_health_check.sh +++ b/bin/reproducible_node_health_check.sh @@ -100,6 +100,20 @@ else echo "Cherrish today, $(date -u)." fi +# +# check for cleaned up kernels +# (on Ubuntu systems only, as those have free spaces issues on /boot frequently) +# +if [ "$(lsb_release -si)" = "Ubuntu" ] ; then + echo "$(date -u) - testing whether only one kernel is installed..." + if [ "$(ls /boot/vmlinuz-*|wc -l)" != "1" ] ; then + echo "Warning, more than one kernel in /boot:" + ls -lart /boot/vmlinuz-* + df -h /boot + DIRTY=true + fi +fi + # # finally # -- cgit v1.2.3-70-g09d2