tags 451050 patch
thanks

Hello. Here's a quick patch to correct this issue, so the script will
work with GRUB Legacy. I haven't looked into how to get it to work with
GRUB 2, though.


--- a/debian/make-memtest86+-boot-floppy        2008-11-07 15:40:02.000000000 
+0000
+++ b/debian/make-memtest86+-boot-floppy        2008-11-07 15:50:31.000000000 
+0000
@@ -44,6 +44,13 @@
     shift
 done
 
+arch=$(dpkg --print-architecture)
+case "$arch" in
+  i386|?*-i386)   host_cpu=i386;;
+  amd64|?*-amd64) host_cpu=x86_64;;
+  *)              error "Unsupported architecture: $arch";;
+esac
+
 MOUNTPOINT=$(mktemp -d)
 
 if [ -b "$FLOPPYIMAGE" ]
@@ -75,7 +82,7 @@
 title  memtest
 kernel (fd0)/boot/memtest.bin
 EOF
-mcopy -v -i "$FLOPPYIMAGE" /usr/lib/grub/i386-pc/* ::/boot/grub 
+mcopy -v -i "$FLOPPYIMAGE" /usr/lib/grub/$host_cpu-pc/* ::/boot/grub 
 
 echo
 echo "* Installing $MEMTEST"



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to