X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;fp=chroot-script;h=cf99596273b53a32f33b3d59fcacdcd9f3b1e648;hp=751eac3f714d0568c5b2ab6d88c126406fce12e6;hb=e45e376b45ef53014bd6f56164be2b5cbc9f49a1;hpb=4f9ea9128412213f405416da7f15c3f329857f12 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 } # }}}