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