From 2709dd5166911b1c8bcf0f606ab201d594af5d78 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Wed, 28 Sep 2011 16:47:38 +0200 Subject: [PATCH] Fix reboot check. --- src/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.10.4