Re: Is there an equivalent to 40_custom with EFI boot?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/12/22 16:28, Michael D. Setzer II via users wrote:
Wondering if possible to add non-Fedora options to EFI boot menu with some
method similar to the 40_Custom. Thanks.

I've maintained a project on Sourceforge going back to 2004, and it was
originally a cd only boot option, but over years create usb and ability to boot
directly from grub2 menu using 40_custom.
Few years ago, created EFI boot options that work with cd and usb using
grub4dos and grub4dosefi as boot loaders. Have looked for a process similar to
40_custom for EFI, but have not located anything.

The 40_custom is very simple.
# !/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry G4L_Version_0.62_video_800x600 {
	set gfxpayload=800x600x16,800x600
	linux /bz6x0.12 root=/dev/ram0 telnetd=yes
	initrd /ramdisk.lzma
}

Has the kernal file and ramdisk.lzma in the /boot directory and loads program
directly from grub2 boot menu.

With grub4dos regular boot the menu has this for booting.

title G4L - bz6x0.12 - with vga=788
find --set-root /linux/bz6x0.12
kernel /linux/bz6x0.12 root=/dev/ram0 vga=788 telnetd=yes
initrd /linux/ramdisk.lzma

Also have this to run memtest since regular Fedora one doesn't seem to work??
title memtest
find --set-root /memtest86+-5.31b.iso
#Uses memdisk from syslinux 6.04pre1
kernel /memdisk iso
initrd /memtest86+-5.31b.iso

In the EFI/grub/menu.list have to boot. memtest doesn't work with the EFI boot
so no option for that.

title G4L - bz6x0.12 - Version 0.62 Default Screen Resolution
find --set-root /linux/bz6x0.12
kernel /linux/bz6x0.12 root=/dev/ram0 telnetd=yes
initrd /linux/ramdisk.lzma
Hi Michael,
    As I understand it, /etc/grub.d/40_custom can be used equally with UEFI boots and legacy boots.

regards,
Steve

+------------------------------------------------------------+
  Michael D. Setzer II - Computer Science Instructor (Retired)
  mailto:mikes@xxxxxxxx
  mailto:msetzerii@xxxxxxxxx
  Guam - Where America's Day Begins
  G4L Disk Imaging Project maintainer
  http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+


_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux