set default="1" function load_video { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi } load_video set gfxpayload=keep insmod gzio insmod part_gpt insmod ext2 set timeout=60 set debug="linux,loader,mm" ### END /etc/grub.d/00_header ### search --no-floppy --set=root -l 'openEuler-24.03-LTS-riscv64' ### BEGIN /etc/grub.d/10_linux ### menuentry 'Install openEuler 24.03-LTS' --class red --class gnu-linux --class gnu --class os { linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=openEuler-24.03-LTS-riscv64 ro inst.geoloc=0 systemd.default_timeout_start_sec=600 selinux=0 highres=off earlycon no4lvl initrd /images/pxeboot/initrd.img } menuentry 'Test this media & install openEuler 24.03-LTS' --class red --class gnu-linux --class gnu --class os { linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=openEuler-24.03-LTS-riscv64 rd.live.check inst.geoloc=0 systemd.default_timeout_start_sec=600 selinux=0 highres=off earlycon no4lvl initrd /images/pxeboot/initrd.img } submenu 'Troubleshooting -->' { menuentry 'Install openEuler 24.03-LTS in basic graphics mode' --class red --class gnu-linux --class gnu --class os { linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=openEuler-24.03-LTS-riscv64 nomodeset inst.geoloc=0 systemd.default_timeout_start_sec=600 selinux=0 highres=off earlycon no4lvl initrd /images/pxeboot/initrd.img } menuentry 'Rescue the openEuler system' --class red --class gnu-linux --class gnu --class os { linux /images/pxeboot/vmlinuz inst.stage2=hd:LABEL=openEuler-24.03-LTS-riscv64 rescue systemd.default_timeout_start_sec=600 selinux=0 highres=off earlycon no4lvl initrd /images/pxeboot/initrd.img } }