diff -Nurpd uck-code-orig/uck-remaster uck-code-memtest/uck/uck-remaster --- uck-code-orig/uck-remaster 2013-07-08 22:49:51.507268275 +0200 +++ uck-code-memtest/uck-remaster 2013-07-09 19:59:02.303543736 +0200 @@ -186,6 +186,15 @@ if [ "$CUSTOMIZE_INITRD" = "yes" ]; then echo "Initrd customization script finished" fi +# if there's memtest in the remaster-root make sure the same possibly updated version is bootable from the ISO +# for example Ubuntu Quantal's memtest on the ISO is broken, but an update was pushed via a package (LP#1071209) +if [[ -f "$REMASTER_HOME/remaster-iso/install/mt86plus" && -f "$REMASTER_HOME/remaster-root/boot/memtest86+.bin" ]]; then + echo "Updating memtest86+ on the ISO" + cp "$REMASTER_HOME/remaster-root/boot/memtest86+.bin" "$REMASTER_HOME/remaster-iso/install/mt86plus" +else + echo "Skipping memtest update" +fi + ########### # packing # ###########