Fix installing memtest86+ after file name change in package

This commit is contained in:
Silvan Calarco 2017-03-14 10:47:40 +01:00
parent 12f1a37655
commit f41f89b1ee
8 changed files with 12 additions and 12 deletions

View File

@ -60,7 +60,7 @@ for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32;
done done
# install memtest # install memtest
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest || [ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest86+.bin $MOUNTDIR2/boot/isolinux/memtest ||
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package."; { echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
exit 1; } exit 1; }

View File

@ -47,9 +47,9 @@ LABEL -
MENU DISABLE MENU DISABLE
_EOF _EOF
# rename memtest.bin because syslinux/extlinux consider .bin extension as # rename memtest86+.bin because syslinux/extlinux consider .bin extension as
# other thing # other thing
mv $MOUNTDIR/boot/memtest.bin $MOUNTDIR/boot/memtest mv $MOUNTDIR/boot/memtest86+.bin $MOUNTDIR/boot/memtest
# copy /boot directory to final root # copy /boot directory to final root
cp -a --no-preserve=ownership $MOUNTDIR/boot $MOUNTDIR2 cp -a --no-preserve=ownership $MOUNTDIR/boot $MOUNTDIR2

View File

@ -71,9 +71,9 @@ LABEL -
MENU DISABLE MENU DISABLE
_EOF _EOF
# rename memtest.bin because syslinux/extlinux consider .bin extension as # rename memtest86+.bin because syslinux/extlinux consider .bin extension as
# other thing # other thing
mv $MOUNTDIR/boot/memtest.bin $MOUNTDIR/boot/memtest mv $MOUNTDIR/boot/memtest86+.bin $MOUNTDIR/boot/memtest
# copy /boot directory to final root # copy /boot directory to final root
cp -a --no-preserve=ownership $MOUNTDIR/boot $MOUNTDIR2 cp -a --no-preserve=ownership $MOUNTDIR/boot $MOUNTDIR2

View File

@ -67,7 +67,7 @@ _EOF
cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/isolinux/ cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/isolinux/
# install memtest # install memtest
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest || [ -e $MOUNTDIR/boot/memtest86+.bin ] && cp $MOUNTDIR/boot/memtest86+.bin $MOUNTDIR2/boot/isolinux/memtest ||
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package."; { echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
exit 1; } exit 1; }

View File

@ -108,8 +108,8 @@ for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32;
done done
# install memtest # install memtest
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest || [ -e $MOUNTDIR/boot/memtest86+.bin ] && cp $MOUNTDIR/boot/memtest86+.bin $MOUNTDIR2/boot/isolinux/memtest ||
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package."; { echo "Error: /boot/memtest86+.bin not found. Please install the memtest86 package.";
exit 1; } exit 1; }
# copy static files for specific platform # copy static files for specific platform

View File

@ -136,7 +136,7 @@ for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32;
done done
# install memtest # install memtest
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest || [ -e $MOUNTDIR/boot/memtest86+.bin ] && cp $MOUNTDIR/boot/memtest86+.bin $MOUNTDIR2/boot/isolinux/memtest ||
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package."; { echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
exit 1; } exit 1; }

View File

@ -111,7 +111,7 @@ for f in ldlinux.c32 libcom32.c32 libutil.c32 libmenu.c32 menu.c32 vesamenu.c32;
done done
# install memtest # install memtest
[ -e $MOUNTDIR/boot/memtest.bin ] && cp $MOUNTDIR/boot/memtest.bin $MOUNTDIR2/boot/isolinux/memtest || [ -e $MOUNTDIR/boot/memtest86+.bin ] && cp $MOUNTDIR/boot/memtest86+.bin $MOUNTDIR2/boot/isolinux/memtest ||
{ echo "Error: /boot/memtest.bin not found. Please install the memtest86 package."; { echo "Error: /boot/memtest.bin not found. Please install the memtest86 package.";
exit 1; } exit 1; }

View File

@ -93,7 +93,7 @@ menuentry "Memory test (memtest86+)" {
root=(hd31) root=(hd31)
insmod ext2 insmod ext2
echo Loading memtest86+ ... echo Loading memtest86+ ...
linux16 /boot/memtest.bin linux16 /boot/memtest86+.bin
} }
menuentry "" { menuentry "" {