summaryrefslogtreecommitdiffstats
path: root/tools/templates/core_pkg/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'tools/templates/core_pkg/kernel')
-rw-r--r--tools/templates/core_pkg/kernel/metadir/+DEINSTALL3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/templates/core_pkg/kernel/metadir/+DEINSTALL b/tools/templates/core_pkg/kernel/metadir/+DEINSTALL
index fa2cb42..aab42e4 100644
--- a/tools/templates/core_pkg/kernel/metadir/+DEINSTALL
+++ b/tools/templates/core_pkg/kernel/metadir/+DEINSTALL
@@ -7,7 +7,8 @@ fi
echo "===> Keeping a copy of current kernel in /boot/kernel.old"
# Check if there is a current kernel to be moved
-if [ ! -f /boot/kernel/kernel.gz ]; then
+if [ ! -f /boot/kernel/kernel.gz ] \
+ && [ ! -f /boot/kernel/kernel ]; then
echo "ERROR: Current kernel not found"
exit 1
fi
OpenPOWER on IntegriCloud