Fix installing memtest86+ after file name change in package
This commit is contained in:
parent
12f1a37655
commit
f41f89b1ee
@ -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; }
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
@ -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; }
|
||||||
|
|
||||||
|
@ -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 "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user