17 # Re-CD into the originally calculated base directory and set the
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"
24 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 ahci_load hint.ahci.disabled
45 menuadd lunsetif ehci_load hint.ehci.0.disabled
46 menuadd lunsetif xhci_load hint.xhci.0.disabled
50 menuitem 2 "Boot DragonFly in Safe Mode"
51 menuadd cd ${base}${default_kernel}
52 menuadd optinclude loader.conf
53 menuadd optinclude loader.conf.local
54 menuadd set hint.acpi.0.disabled=1
55 menuadd set loader.acpi_disabled_by_user=1
56 menuadd set hint.ehci.0.disabled=1
57 menuadd set hint.xhci.0.disabled=1
58 menuadd set loader.ehci_disabled_by_user=1
59 menuadd set loader.xhci_disabled_by_user=1
60 menuadd set hw.ata.ata_dma=0
61 menuadd set hw.ata.atapi_dma=0
62 menuadd set hw.ata.wc=0
63 menuadd set hw.eisa_slots=0
64 menuadd lunsetif acpi_load hint.acpi.0.disabled
65 menuadd lunsetif ahci_load hint.ahci.disabled
66 menuadd lunsetif ehci_load hint.ehci.0.disabled
67 menuadd lunsetif xhci_load hint.xhci.0.disabled
70 menuadd set autoboot_delay=NO
72 menuitem 3 "Boot DragonFly without AHCI driver"
73 menuadd cd ${base}${default_kernel}
74 menuadd optinclude loader.conf
75 menuadd optinclude loader.conf.local
76 menuadd set hint.ahci.disabled=YES
77 menuadd lunsetif acpi_load hint.acpi.0.disabled
78 menuadd lunsetif ahci_load hint.ahci.disabled
79 menuadd lunsetif ehci_load hint.ehci.0.disabled
80 menuadd lunsetif xhci_load hint.xhci.0.disabled
83 menuadd set autoboot_delay=NO
85 menuitem 4 "Boot DragonFly without ACPI driver"
86 menuadd cd ${base}${default_kernel}
87 menuadd optinclude loader.conf
88 menuadd optinclude loader.conf.local
89 menuadd set hint.acpi.0.disabled=1
90 menuadd set loader.acpi_disabled_by_user=1
91 menuadd lunsetif acpi_load hint.acpi.0.disabled
92 menuadd lunsetif ahci_load hint.ahci.disabled
93 menuadd lunsetif ehci_load hint.ehci.0.disabled
94 menuadd lunsetif xhci_load hint.xhci.0.disabled
97 menuadd set autoboot_delay=NO
99 menuitem 9 "Escape to loader prompt (also ESC)"
100 menuadd optcd ${base}${default_kernel}
101 menuadd set autoboot_delay=NO
104 menuitem a "Boot Backup kernel kernel.alt"
105 menuadd cd ${base}kernel.alt
106 menuadd optinclude loader.conf
107 menuadd optinclude loader.conf.local
108 menuadd lunsetif acpi_load hint.acpi.0.disabled
109 menuadd lunsetif ahci_load hint.ahci.disabled
110 menuadd lunsetif ehci_load hint.ehci.0.disabled
111 menuadd lunsetif xhci_load hint.xhci.0.disabled
114 menuadd set autoboot_delay=NO
118 menuitem b "Boot Backup kernel kernel.bak"
119 menuadd cd ${base}kernel.bak
120 menuadd optinclude loader.conf
121 menuadd optinclude loader.conf.local
122 menuadd lunsetif acpi_load hint.acpi.0.disabled
123 menuadd lunsetif ahci_load hint.ahci.disabled
124 menuadd lunsetif ehci_load hint.ehci.0.disabled
125 menuadd lunsetif xhci_load hint.xhci.0.disabled
128 menuadd set autoboot_delay=NO
132 menuitem o "Boot DragonFly using kernel.old"
133 menuadd cd ${base}kernel.old
134 menuadd optinclude loader.conf
135 menuadd optinclude loader.conf.local
136 menuadd lunsetif acpi_load hint.acpi.0.disabled
137 menuadd lunsetif ahci_load hint.ahci.disabled
138 menuadd lunsetif ehci_load hint.ehci.0.disabled
139 menuadd lunsetif xhci_load hint.xhci.0.disabled
142 menuadd set autoboot_delay=NO
145 menuitem r "Boot DragonFly to a rescue ramdisk"
146 menuadd cd ${base}${default_kernel}
147 menuadd optinclude loader.conf
148 menuadd optinclude loader.conf.local
149 menuadd set boot_single="YES"
150 menuadd lunsetif acpi_load hint.acpi.0.disabled
151 menuadd lunsetif ahci_load hint.ahci.disabled
152 menuadd lunsetif ehci_load hint.ehci.0.disabled
153 menuadd lunsetif xhci_load hint.xhci.0.disabled
154 menuadd initrd.img_load="YES"
155 menuadd initrd.img_type="md_image"
156 menuadd set vfs.root.mountfrom="ufs:md0s0"
157 menuadd unset vfs.root.real_root
160 menuadd set autoboot_delay=NO
162 menuitem s "Boot DragonFly in single user mode"
163 menuadd cd ${base}${default_kernel}
164 menuadd optinclude loader.conf
165 menuadd optinclude loader.conf.local
166 menuadd set boot_single="YES"
167 menuadd lunsetif acpi_load hint.acpi.0.disabled
168 menuadd lunsetif ahci_load hint.ahci.disabled
169 menuadd lunsetif ehci_load hint.ehci.0.disabled
170 menuadd lunsetif xhci_load hint.xhci.0.disabled
173 menuadd set autoboot_delay=NO
175 menuitem v "Boot DragonFly with verbose logging"
176 menuadd cd ${base}${default_kernel}
177 menuadd optinclude loader.conf
178 menuadd optinclude loader.conf.local
179 menuadd set boot_verbose=YES
180 menuadd lunsetif acpi_load hint.acpi.0.disabled
181 menuadd lunsetif ahci_load hint.ahci.disabled
182 menuadd lunsetif ehci_load hint.ehci.0.disabled
183 menuadd lunsetif xhci_load hint.xhci.0.disabled
186 menuadd set autoboot_delay=NO