18 # Re-CD into the originally calculated base directory and set the
21 # The module_path is a bit fragile, we want to set it to the current h
22 # directory and ./modules subdirectory only, which is "<empty>;modules"
25 set module_path=";modules"
32 # already selected a kernel
34 set default_kernel=kernel
36 set default_kernel=kernel
39 menuitem 1 "Boot DragonFly [${default_kernel}]"
40 menuadd cd ${base}${default_kernel}
41 menuadd optinclude loader.conf
42 menuadd optinclude loader.conf.local
43 menuadd lunsetif acpi_load hint.acpi.0.disabled
44 menuadd lunsetif ehci_load hint.ehci.0.disabled
45 menuadd lunsetif ahci_load hint.ahci.disabled
49 menuitem 2 "Boot DragonFly in Safe Mode"
50 menuadd cd ${base}${default_kernel}
51 menuadd optinclude loader.conf
52 menuadd optinclude loader.conf.local
53 menuadd set hint.acpi.0.disabled=1
54 menuadd set loader.acpi_disabled_by_user=1
55 menuadd set hint.ehci.0.disabled=1
56 menuadd set loader.ehci_disabled_by_user=1
57 menuadd set hw.ata.ata_dma=0
58 menuadd set hw.ata.atapi_dma=0
59 menuadd set hw.ata.wc=0
60 menuadd set hw.eisa_slots=0
61 menuadd lunsetif acpi_load hint.acpi.0.disabled
62 menuadd lunsetif ehci_load hint.ehci.0.disabled
63 menuadd lunsetif ahci_load hint.ahci.disabled
66 menuadd set autoboot_delay=NO
68 menuitem 3 "Boot DragonFly without AHCI driver"
69 menuadd cd ${base}${default_kernel}
70 menuadd optinclude loader.conf
71 menuadd optinclude loader.conf.local
72 menuadd set hint.ahci.disabled=YES
73 menuadd lunsetif acpi_load hint.acpi.0.disabled
74 menuadd lunsetif ehci_load hint.ehci.0.disabled
75 menuadd lunsetif ahci_load hint.ahci.disabled
78 menuadd set autoboot_delay=NO
80 menuitem 4 "Boot DragonFly without ACPI driver"
81 menuadd cd ${base}${default_kernel}
82 menuadd optinclude loader.conf
83 menuadd optinclude loader.conf.local
84 menuadd set hint.acpi.0.disabled=1
85 menuadd set loader.acpi_disabled_by_user=1
86 menuadd lunsetif acpi_load hint.acpi.0.disabled
87 menuadd lunsetif ehci_load hint.ehci.0.disabled
88 menuadd lunsetif ahci_load hint.ahci.disabled
91 menuadd set autoboot_delay=NO
93 menuitem 9 "Escape to loader prompt (also ESC)"
94 menuadd optcd ${base}${default_kernel}
95 menuadd set autoboot_delay=NO
98 menuitem a "Boot Backup kernel kernel.alt"
99 menuadd cd ${base}kernel.alt
100 menuadd optinclude loader.conf
101 menuadd optinclude loader.conf.local
102 menuadd lunsetif acpi_load hint.acpi.0.disabled
103 menuadd lunsetif ehci_load hint.ehci.0.disabled
104 menuadd lunsetif ahci_load hint.ahci.disabled
107 menuadd set autoboot_delay=NO
111 menuitem b "Boot Backup kernel kernel.bak"
112 menuadd cd ${base}kernel.bak
113 menuadd optinclude loader.conf
114 menuadd optinclude loader.conf.local
115 menuadd lunsetif acpi_load hint.acpi.0.disabled
116 menuadd lunsetif ehci_load hint.ehci.0.disabled
117 menuadd lunsetif ahci_load hint.ahci.disabled
120 menuadd set autoboot_delay=NO
124 menuitem o "Boot DragonFly using kernel.old"
125 menuadd cd ${base}kernel.old
126 menuadd optinclude loader.conf
127 menuadd optinclude loader.conf.local
128 menuadd lunsetif acpi_load hint.acpi.0.disabled
129 menuadd lunsetif ehci_load hint.ehci.0.disabled
130 menuadd lunsetif ahci_load hint.ahci.disabled
133 menuadd set autoboot_delay=NO
136 menuitem s "Boot DragonFly in single user mode"
137 menuadd cd ${base}${default_kernel}
138 menuadd optinclude loader.conf
139 menuadd optinclude loader.conf.local
140 menuadd set boot_single="YES"
141 menuadd lunsetif acpi_load hint.acpi.0.disabled
142 menuadd lunsetif ehci_load hint.ehci.0.disabled
143 menuadd lunsetif ahci_load hint.ahci.disabled
146 menuadd set autoboot_delay=NO
148 menuitem v "Boot DragonFly with verbose logging"
149 menuadd cd ${base}${default_kernel}
150 menuadd optinclude loader.conf
151 menuadd optinclude loader.conf.local
152 menuadd set boot_verbose=YES
153 menuadd lunsetif acpi_load hint.acpi.0.disabled
154 menuadd lunsetif ehci_load hint.ehci.0.disabled
155 menuadd lunsetif ahci_load hint.ahci.disabled
158 menuadd set autoboot_delay=NO