From 1dda3f4d6cdc5019184af3685f793bf8d25729df Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 24 Jul 2014 16:38:49 -0500 Subject: [PATCH] mk_mmc.sh: ubuntu debugging helpers Signed-off-by: Robert Nelson --- mk_mmc.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mk_mmc.sh b/mk_mmc.sh index 7658ec6..36cbd58 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -711,6 +711,7 @@ flash_kernel_base_installer () { #need by Ubuntu Trusty (flash-kernel) mkdir -p /lib/firmware/\$(uname -r)/device-tree/ cp /target/boot/uboot/boot/dtbs/current/* /lib/firmware/\$(uname -r)/device-tree/ + if [ -f /target/boot/uboot/boot/vmlinuz-current ] ; then cp /target/boot/uboot/boot/vmlinuz-current /boot/vmlinuz-\$(uname -r) fi @@ -720,11 +721,13 @@ flash_kernel_base_installer () { #patch ubuntu's linux-version: if [ -f /fixes/linux-version ] ; then + chroot /target apt-get update chroot /target apt-get -y --force-yes install linux-base mv /target/usr/bin/linux-version /target/usr/bin/linux-version.broken cp /fixes/linux-version /target/usr/bin/linux-version fi + echo "00flash-kernel: update-initramfs -c -k \$(uname -r)" chroot /target update-initramfs -c -k \$(uname -r) rm -f /target/mounts || true umount /target/sys