Replies: 2 comments 4 replies
-
Then just put your code inside the { } braces
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can i add this code
#########
menuentry "name" {
}
#########
on two configs?
1# cfg
#####################
f [ "$grub_platform" == "efi" ]; then
search --file --no-floppy --set=root /EFI/BOOT/grubfm
chainloader /efi/boot/grubfm${VTOY_EFI_ARCH}.efi
boot
fi
elif [ "${grub_platform}" == "pc" ]; then
search --file --no-floppy --set=root /AIO/grubfm/grubfm
set _path="/AIO/grubfm/"
linux ${_path}/loadfm
initrd ${_path}/grubfm.iso
boot
}
####################
2# cfg
####################
if [ "$grub_platform" == "efi" ]; then
search -n -f "/AIO/grub/grub.cfg" -s root
chainloader /efi/boot/boot${VTOY_EFI_ARCH}.efi
boot
fi
elif [ "${grub_platform}" == "pc" ]; then
search --file --no-floppy --set=root /AIO/grub/i386-pc/core.img
multiboot /AIO/grub/i386-pc/core.img
boot
}
#####################
Beta Was this translation helpful? Give feedback.
All reactions