From: Valentin Vidic Date: Wed, 28 Sep 2011 14:47:38 +0000 (+0200) Subject: Fix reboot check. X-Git-Tag: debian/6.0.0~18 X-Git-Url: http://ftp.carnet.hr/pub/carnet-debian/scm?a=commitdiff_plain;h=2709dd5166911b1c8bcf0f606ab201d594af5d78;p=carnet-upgrade.git Fix reboot check. --- diff --git a/src/functions.sh b/src/functions.sh index 28d229a..be41f84 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -580,7 +580,7 @@ reboot_required () { if [ ! -e "$default_kernel" ]; then # /boot prefix might be missing - default_kernel="/boot/$default_kernel" + default_kernel="/boot/${default_kernel#/}" if [ ! -e "$default_kernel" ]; then log "Default kernel image doesn't exist!?" return 1