diff --git a/lib/debian-finish.sh b/lib/debian-finish.sh index 22ea137..0653ded 100644 --- a/lib/debian-finish.sh +++ b/lib/debian-finish.sh @@ -183,12 +183,17 @@ if [ ! "x${optargs}" = "x" ] ; then fi fi +#Setup trampoline for old u-boot's or bootdrive =/= rootdrive... if [ -f /boot/uboot/boot/trampoline.uboot ] ; then cp /boot/vmlinuz-`uname -r` /boot/uboot/boot/vmlinuz-current cp /boot/initrd.img-`uname -r` /boot/uboot/boot/initrd.img-current if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then - cp /boot/uboot/uImage /boot/uboot/boot/uImage - cp /boot/uboot/uInitrd /boot/uboot/boot/uInitrd + if [ -f /boot/uboot/uImage ] ; then + cp /boot/uboot/uImage /boot/uboot/boot/uImage + fi + if [ -f /boot/uboot/uInitrd ] ; then + cp /boot/uboot/uInitrd /boot/uboot/boot/uInitrd + fi fi fi diff --git a/lib/ubuntu-finish.sh b/lib/ubuntu-finish.sh index 0c50d9a..2a2a0d7 100644 --- a/lib/ubuntu-finish.sh +++ b/lib/ubuntu-finish.sh @@ -153,12 +153,17 @@ if [ ! "x${optargs}" = "x" ] ; then fi fi +#Setup trampoline for old u-boot's or bootdrive =/= rootdrive... if [ -f /boot/uboot/boot/trampoline.uboot ] ; then cp /boot/vmlinuz-`uname -r` /boot/uboot/boot/vmlinuz-current cp /boot/initrd.img-`uname -r` /boot/uboot/boot/initrd.img-current if [ ! "x${conf_smart_uboot}" = "xenable" ] ; then - cp /boot/uboot/uImage /boot/uboot/boot/uImage - cp /boot/uboot/uInitrd /boot/uboot/boot/uInitrd + if [ -f /boot/uboot/uImage ] ; then + cp /boot/uboot/uImage /boot/uboot/boot/uImage + fi + if [ -f /boot/uboot/uInitrd ] ; then + cp /boot/uboot/uInitrd /boot/uboot/boot/uInitrd + fi fi fi