From e45e376b45ef53014bd6f56164be2b5cbc9f49a1 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 8 Mar 2013 13:36:50 +0100 Subject: [PATCH] fix kernel image search on i386 also warn if no kernel could be found --- chroot-script | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chroot-script b/chroot-script index 751eac3..cf99596 100755 --- a/chroot-script +++ b/chroot-script @@ -292,7 +292,7 @@ get_kernel_version() { fi case $ARCH in - i386) KARCH=i686 ;; + i386) KARCH=686 ;; amd64) KARCH=amd64 ;; *) echo "Only i386 and amd64 are currently supported" >&2 @@ -317,6 +317,8 @@ kernel() { # note: install busybox to be able to debug initramfs KERNELPACKAGES="linux-image-$KVER linux-headers-$KVER busybox firmware-linux-free firmware-linux" DEBIAN_FRONTEND=$DEBIAN_FRONTEND $APTINSTALL $KERNELPACKAGES + else + echo "Warning: Could not find a kernel for your system. Your system won't be able to boot itself!" fi } # }}} -- 2.1.4