nrelease/installer: No longer build and offer separate UP and SMP kernels.
[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
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 ehci_load hint.ehci.0.disabled
45 menuadd lunsetif ahci_load hint.ahci.disabled
46 menuadd loadall
47 menuadd boot
48
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
64 menuadd loadall
65 menuadd boot
66 menuadd set autoboot_delay=NO
67
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
76 menuadd loadall
77 menuadd boot
78 menuadd set autoboot_delay=NO
79
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
89 menuadd loadall
90 menuadd boot
91 menuadd set autoboot_delay=NO
92
93 menuitem 9 "Escape to loader prompt (also ESC)"
94 menuadd optcd ${base}${default_kernel}
95 menuadd set autoboot_delay=NO
96
97 ifexists kernel.alt
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
105 menuadd loadall
106 menuadd boot
107 menuadd set autoboot_delay=NO
108 endif
109
110 ifexists kernel.bak
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
118 menuadd loadall
119 menuadd boot
120 menuadd set autoboot_delay=NO
121 endif
122
123 ifexists kernel.old
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
131 menuadd loadall
132 menuadd boot
133 menuadd set autoboot_delay=NO
134 endif
135
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
144 menuadd loadall
145 menuadd boot
146 menuadd set autoboot_delay=NO
147
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
156 menuadd loadall
157 menuadd boot
158 menuadd set autoboot_delay=NO
159
160 menuitem R "Reboot"
161 menuadd reboot