From c22f36431753af4bcf17243ca8d55977cf8ec650 Mon Sep 17 00:00:00 2001 From: Christopher Spinrath <christopher.spinrath@rwth-aachen.de> Date: Sun, 1 Mar 2015 17:49:02 +0100 Subject: [PATCH] remaster_rootfs: fix copy/paste error --- scripts/remaster_rootfs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/remaster_rootfs.sh b/scripts/remaster_rootfs.sh index 3a67469..c41f867 100755 --- a/scripts/remaster_rootfs.sh +++ b/scripts/remaster_rootfs.sh @@ -82,9 +82,10 @@ function install_packages() KERNEL_PKG=$(dpkg -S "$(readlink -f /vmlinuz)" | cut -d ":" -f1) if [ -z "$KERNEL_PKG" ]; then echo "LIPCK: remaster_rootfs: unable to determine installed kernel version; giving up..." + exit 1 fi #[ "$(uname -m)" == "x86_64" ] || KERNEL_PKG=linux-image-generic-lts-trusty - if [ ! -e "$(readlink -f /initrd.img)" ]; then + if [ ! -e "$(readlink -f /vmlinuz)" ]; then echo "LIPCK: No kernel in place; try to reinstall kernel image package:" echo " $KERNEL_PKG" apt-get --reinstall -y install $KERNEL_PKG -- GitLab