60066f995cb5e8ff632fef014bf438389b844939
[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_ddb
11 unset boot_gdb
12 unset boot_single
13 unset boot_verbose
14 unset boot_vidcons
15 unset 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 #
23 cd ${base}
24 set module_path=";modules"
25
26 acpi_load="YES"
27 ahci_load="YES"
28 ehci_load="YES"
29 xhci_load="YES"
30
31 ifset default_kernel
32     # already selected a kernel
33 elseifexists kernel
34     set default_kernel=kernel
35 else
36     set default_kernel=kernel
37 endif
38
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
47 menuadd loadall
48 menuadd boot
49
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
68 menuadd loadall
69 menuadd boot
70 menuadd set autoboot_delay=NO
71
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
81 menuadd loadall
82 menuadd boot
83 menuadd set autoboot_delay=NO
84
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
95 menuadd loadall
96 menuadd boot
97 menuadd set autoboot_delay=NO
98
99 menuitem 9 "Escape to loader prompt (also ESC)"
100 menuadd optcd ${base}${default_kernel}
101 menuadd set autoboot_delay=NO
102
103 ifexists kernel.alt
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
112 menuadd loadall
113 menuadd boot
114 menuadd set autoboot_delay=NO
115 endif
116
117 ifexists kernel.bak
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
126 menuadd loadall
127 menuadd boot
128 menuadd set autoboot_delay=NO
129 endif
130
131 ifexists kernel.old
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
140 menuadd loadall
141 menuadd boot
142 menuadd set autoboot_delay=NO
143 endif
144
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
158 menuadd loadall
159 menuadd boot
160 menuadd set autoboot_delay=NO
161
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
171 menuadd loadall
172 menuadd boot
173 menuadd set autoboot_delay=NO
174
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
184 menuadd loadall
185 menuadd boot
186 menuadd set autoboot_delay=NO
187
188 menuitem R "Reboot"
189 menuadd reboot