|
K大,我语句不熟,请教大神,把 F7 (ventoy.sh)语句这样改,不知行吗?,其它还要变动吗?
configfile ${prefix}/global.sh;
if [ -n "${ventoy}" ];
then
if [ "${grub_platform}" = "efi" ];
then
if [ -f (${ventoy})/efi/boot/VENTOY${EFI_ARCH}.efi ];
then
chainloader -t (${ventoy})/efi/boot/VENTOY${EFI_ARCH}.efi;
else
chainloader -t (${ventoy})/efi/boot/BOOT${EFI_ARCH}.efi;
fi;
elif [ -f "(${ventoy})/ventoy/core.img" ];
then
set root=${ventoy};
multiboot /ventoy/core.img;
else
mount (${ventoy}) 1;
cp (cd)/grub/core.img 1:/ventoy/core.img;
umount 1
set root=${ventoy};
multiboot /ventoy/core.img;
# --- 原语句 -----
# regexp --set=1:vtdisk '(hd[0-9]+)[0-9,]*' "${ventoy}";
# chainloader (${vtdisk})+1;
fi;
boot;
fi;
source ${prefix}/global.sh;
谢谢K大!
|
|