diff --git a/lib/debian-finish.sh b/lib/debian-finish.sh index 73c3416..372d181 100644 --- a/lib/debian-finish.sh +++ b/lib/debian-finish.sh @@ -139,12 +139,12 @@ chmod u+x /etc/init.d/board_tweaks.sh insserv board_tweaks.sh || true #Install Correct Kernel Image: (this will fail if the boot partition was re-formated) -if [ -f /boot/uboot/linux-image-*_1.0*_arm*.deb ] ; then - dpkg -x /boot/uboot/linux-image-*_1.0*_arm*.deb / +if [ -f /boot/uboot/linux-image-*arm*.deb ] ; then + dpkg -x /boot/uboot/linux-image-*arm*.deb / update-initramfs -c -k `uname -r` cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img - rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true + rm -f /boot/uboot/linux-image-*arm*.deb || true if [ -f /boot/uboot/vmlinuz- ] ; then rm -f /boot/uboot/vmlinuz- || true fi diff --git a/lib/ubuntu-finish.sh b/lib/ubuntu-finish.sh index d85a218..6e4a563 100644 --- a/lib/ubuntu-finish.sh +++ b/lib/ubuntu-finish.sh @@ -172,12 +172,12 @@ cat > /etc/init/board_tweaks.conf <<-__EOF__ __EOF__ #Install Correct Kernel Image: (this will fail if the boot partition was re-formated) -if [ -f /boot/uboot/linux-image-*_1.0*_arm*.deb ] ; then - dpkg -x /boot/uboot/linux-image-*_1.0*_arm*.deb / +if [ -f /boot/uboot/linux-image-*arm*.deb ] ; then + dpkg -x /boot/uboot/linux-image-*arm*.deb / update-initramfs -c -k `uname -r` cp /boot/vmlinuz-`uname -r` /boot/uboot/zImage cp /boot/initrd.img-`uname -r` /boot/uboot/initrd.img - rm -f /boot/uboot/linux-image-*_1.0*_arm*.deb || true + rm -f /boot/uboot/linux-image-*arm*.deb || true #Cleanup: mv /boot/uboot/bootdrive /boot/uboot/backup/ || true