1# Default menu 2# 3# 4 5menuclear 6unload 7 8unset boot_askname 9unset boot_cdrom 10unset boot_ddb 11unset boot_gdb 12unset boot_single 13unset boot_verbose 14unset boot_vidcons 15unset boot_serial 16 17# Re-CD into the originally calculated base directory and set the 18# module_path. 19# 20# The module_path is a bit fragile, we want to set it to the current h 21# directory and ./modules subdirectory only, which is "<empty>;modules" 22# 23cd ${base} 24set module_path=";modules" 25 26acpi_load="YES" 27ahci_load="YES" 28ehci_load="YES" 29xhci_load="YES" 30 31ifset default_kernel 32 # already selected a kernel 33elseifexists kernel 34 set default_kernel=kernel 35else 36 set default_kernel=kernel 37endif 38 39menuitem 1 "Boot DragonFly [${default_kernel}]" 40menuadd cd ${base}${default_kernel} 41menuadd optinclude loader.conf 42menuadd optinclude loader.conf.local 43menuadd lunsetif acpi_load hint.acpi.0.disabled 44menuadd lunsetif ahci_load hint.ahci.disabled 45menuadd lunsetif ehci_load hint.ehci.0.disabled 46menuadd lunsetif xhci_load hint.xhci.0.disabled 47menuadd loadall 48menuadd boot 49 50menuitem 2 "Boot DragonFly in Safe Mode" 51menuadd cd ${base}${default_kernel} 52menuadd optinclude loader.conf 53menuadd optinclude loader.conf.local 54menuadd set hint.acpi.0.disabled=1 55menuadd set loader.acpi_disabled_by_user=1 56menuadd set hint.ehci.0.disabled=1 57menuadd set hint.xhci.0.disabled=1 58menuadd set loader.ehci_disabled_by_user=1 59menuadd set loader.xhci_disabled_by_user=1 60menuadd set hw.ata.ata_dma=0 61menuadd set hw.ata.atapi_dma=0 62menuadd set hw.ata.wc=0 63menuadd set hw.eisa_slots=0 64menuadd lunsetif acpi_load hint.acpi.0.disabled 65menuadd lunsetif ahci_load hint.ahci.disabled 66menuadd lunsetif ehci_load hint.ehci.0.disabled 67menuadd lunsetif xhci_load hint.xhci.0.disabled 68menuadd loadall 69menuadd boot 70menuadd set autoboot_delay=NO 71 72menuitem 3 "Boot DragonFly without AHCI driver" 73menuadd cd ${base}${default_kernel} 74menuadd optinclude loader.conf 75menuadd optinclude loader.conf.local 76menuadd set hint.ahci.disabled=YES 77menuadd lunsetif acpi_load hint.acpi.0.disabled 78menuadd lunsetif ahci_load hint.ahci.disabled 79menuadd lunsetif ehci_load hint.ehci.0.disabled 80menuadd lunsetif xhci_load hint.xhci.0.disabled 81menuadd loadall 82menuadd boot 83menuadd set autoboot_delay=NO 84 85menuitem 4 "Boot DragonFly without ACPI driver" 86menuadd cd ${base}${default_kernel} 87menuadd optinclude loader.conf 88menuadd optinclude loader.conf.local 89menuadd set hint.acpi.0.disabled=1 90menuadd set loader.acpi_disabled_by_user=1 91menuadd lunsetif acpi_load hint.acpi.0.disabled 92menuadd lunsetif ahci_load hint.ahci.disabled 93menuadd lunsetif ehci_load hint.ehci.0.disabled 94menuadd lunsetif xhci_load hint.xhci.0.disabled 95menuadd loadall 96menuadd boot 97menuadd set autoboot_delay=NO 98 99menuitem 9 "Escape to loader prompt (also ESC)" 100menuadd optcd ${base}${default_kernel} 101menuadd set autoboot_delay=NO 102 103ifexists kernel.alt 104menuitem a "Boot Backup kernel kernel.alt" 105menuadd cd ${base}kernel.alt 106menuadd optinclude loader.conf 107menuadd optinclude loader.conf.local 108menuadd lunsetif acpi_load hint.acpi.0.disabled 109menuadd lunsetif ahci_load hint.ahci.disabled 110menuadd lunsetif ehci_load hint.ehci.0.disabled 111menuadd lunsetif xhci_load hint.xhci.0.disabled 112menuadd loadall 113menuadd boot 114menuadd set autoboot_delay=NO 115endif 116 117ifexists kernel.bak 118menuitem b "Boot Backup kernel kernel.bak" 119menuadd cd ${base}kernel.bak 120menuadd optinclude loader.conf 121menuadd optinclude loader.conf.local 122menuadd lunsetif acpi_load hint.acpi.0.disabled 123menuadd lunsetif ahci_load hint.ahci.disabled 124menuadd lunsetif ehci_load hint.ehci.0.disabled 125menuadd lunsetif xhci_load hint.xhci.0.disabled 126menuadd loadall 127menuadd boot 128menuadd set autoboot_delay=NO 129endif 130 131ifexists kernel.old 132menuitem o "Boot DragonFly using kernel.old" 133menuadd cd ${base}kernel.old 134menuadd optinclude loader.conf 135menuadd optinclude loader.conf.local 136menuadd lunsetif acpi_load hint.acpi.0.disabled 137menuadd lunsetif ahci_load hint.ahci.disabled 138menuadd lunsetif ehci_load hint.ehci.0.disabled 139menuadd lunsetif xhci_load hint.xhci.0.disabled 140menuadd loadall 141menuadd boot 142menuadd set autoboot_delay=NO 143endif 144 145menuitem r "Boot DragonFly to a rescue ramdisk" 146menuadd cd ${base}${default_kernel} 147menuadd optinclude loader.conf 148menuadd optinclude loader.conf.local 149menuadd set boot_single="YES" 150menuadd lunsetif acpi_load hint.acpi.0.disabled 151menuadd lunsetif ahci_load hint.ahci.disabled 152menuadd lunsetif ehci_load hint.ehci.0.disabled 153menuadd lunsetif xhci_load hint.xhci.0.disabled 154menuadd initrd.img_load="YES" 155menuadd initrd.img_type="md_image" 156menuadd set vfs.root.mountfrom="ufs:md0s0" 157menuadd unset vfs.root.realroot 158menuadd loadall 159menuadd boot 160menuadd set autoboot_delay=NO 161 162menuitem s "Boot DragonFly in single user mode" 163menuadd cd ${base}${default_kernel} 164menuadd optinclude loader.conf 165menuadd optinclude loader.conf.local 166menuadd set boot_single="YES" 167menuadd lunsetif acpi_load hint.acpi.0.disabled 168menuadd lunsetif ahci_load hint.ahci.disabled 169menuadd lunsetif ehci_load hint.ehci.0.disabled 170menuadd lunsetif xhci_load hint.xhci.0.disabled 171menuadd loadall 172menuadd boot 173menuadd set autoboot_delay=NO 174 175menuitem v "Boot DragonFly with verbose logging" 176menuadd cd ${base}${default_kernel} 177menuadd optinclude loader.conf 178menuadd optinclude loader.conf.local 179menuadd set boot_verbose=YES 180menuadd lunsetif acpi_load hint.acpi.0.disabled 181menuadd lunsetif ahci_load hint.ahci.disabled 182menuadd lunsetif ehci_load hint.ehci.0.disabled 183menuadd lunsetif xhci_load hint.xhci.0.disabled 184menuadd loadall 185menuadd boot 186menuadd set autoboot_delay=NO 187 188menuitem R "Reboot" 189menuadd reboot 190