nrelease: Fix an annoying bug that was preventing the ISOs from booting UP.
[dragonfly.git] / sys / boot / dloader / dloader.menu
CommitLineData
116b7e3c
MD
1# Default menu
2#
3#
4
5menuclear
6unload
7
8unset boot_askname
9unset boot_cdrom
10unset boot_userconfig
11unset boot_ddb
12unset boot_gdb
13unset boot_single
14unset boot_verbose
15unset boot_vidcons
16unset 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#
24cd ${base}
25set module_path=";modules"
26
27acpi_load="YES"
28ahci_load="YES"
29ehci_load="YES"
30
5b31b6dc
MD
31# Default boot /boot/kernel/ is the user-installed kernel and
32# is always checked first. Otherwise fallback to generic kernels.
33#
34ifset default_kernel
35 # already selected a kernel
36elseifexists kernel
37 set default_kernel=kernel
365948c8
SW
38elseifexists UP
39 set default_kernel=UP
40elseifexists SMP
41 set default_kernel=SMP
5b31b6dc
MD
42else
43 set default_kernel=kernel
44endif
45
46menuitem 1 "Boot DragonFly [${default_kernel}]"
47menuadd cd ${base}${default_kernel}
116b7e3c
MD
48menuadd optinclude loader.conf
49menuadd optinclude loader.conf.local
50menuadd lunsetif acpi_load hint.acpi.0.disabled
51menuadd lunsetif ehci_load hint.ehci.0.disabled
52menuadd lunsetif ahci_load hint.ahci.disabled
53menuadd loadall
54menuadd boot
55
56menuitem 2 "Boot DragonFly in Safe Mode"
5b31b6dc 57menuadd cd ${base}${default_kernel}
116b7e3c
MD
58menuadd optinclude loader.conf
59menuadd optinclude loader.conf.local
60menuadd set hint.acpi.0.disabled=1
61menuadd set loader.acpi_disabled_by_user=1
62menuadd set hint.ehci.0.disabled=1
63menuadd set loader.ehci_disabled_by_user=1
64menuadd set hw.ata.ata_dma=0
65menuadd set hw.ata.atapi_dma=0
66menuadd set hw.ata.wc=0
67menuadd set hw.eisa_slots=0
68menuadd lunsetif acpi_load hint.acpi.0.disabled
69menuadd lunsetif ehci_load hint.ehci.0.disabled
70menuadd lunsetif ahci_load hint.ahci.disabled
71menuadd loadall
72menuadd boot
73menuadd set autoboot_delay=NO
74
d92165fe 75menuitem 3 "Boot DragonFly without AHCI driver"
5b31b6dc 76menuadd cd ${base}${default_kernel}
116b7e3c
MD
77menuadd optinclude loader.conf
78menuadd optinclude loader.conf.local
d92165fe 79menuadd set hint.ahci.disabled=YES
116b7e3c
MD
80menuadd lunsetif acpi_load hint.acpi.0.disabled
81menuadd lunsetif ehci_load hint.ehci.0.disabled
82menuadd lunsetif ahci_load hint.ahci.disabled
83menuadd loadall
84menuadd boot
85menuadd set autoboot_delay=NO
86
d92165fe 87menuitem 4 "Boot DragonFly without ACPI driver"
5b31b6dc 88menuadd cd ${base}${default_kernel}
116b7e3c
MD
89menuadd optinclude loader.conf
90menuadd optinclude loader.conf.local
d92165fe
MD
91menuadd set hint.acpi.0.disabled=1
92menuadd set loader.acpi_disabled_by_user=1
116b7e3c
MD
93menuadd lunsetif acpi_load hint.acpi.0.disabled
94menuadd lunsetif ehci_load hint.ehci.0.disabled
95menuadd lunsetif ahci_load hint.ahci.disabled
96menuadd loadall
97menuadd boot
98menuadd set autoboot_delay=NO
99
d92165fe 100menuitem 9 "Escape to loader prompt (also ESC)"
5b31b6dc 101menuadd optcd ${base}${default_kernel}
d92165fe
MD
102menuadd set autoboot_delay=NO
103
5b31b6dc 104ifexists kernel.alt
d92165fe
MD
105menuitem a "Boot Backup kernel kernel.alt"
106menuadd cd ${base}kernel.alt
116b7e3c
MD
107menuadd optinclude loader.conf
108menuadd optinclude loader.conf.local
116b7e3c
MD
109menuadd lunsetif acpi_load hint.acpi.0.disabled
110menuadd lunsetif ehci_load hint.ehci.0.disabled
111menuadd lunsetif ahci_load hint.ahci.disabled
112menuadd loadall
113menuadd boot
114menuadd set autoboot_delay=NO
5b31b6dc 115endif
116b7e3c 116
5b31b6dc 117ifexists kernel.bak
d92165fe
MD
118menuitem b "Boot Backup kernel kernel.bak"
119menuadd cd ${base}kernel.bak
116b7e3c
MD
120menuadd optinclude loader.conf
121menuadd optinclude loader.conf.local
122menuadd lunsetif acpi_load hint.acpi.0.disabled
123menuadd lunsetif ehci_load hint.ehci.0.disabled
124menuadd lunsetif ahci_load hint.ahci.disabled
125menuadd loadall
126menuadd boot
127menuadd set autoboot_delay=NO
5b31b6dc 128endif
116b7e3c 129
5b31b6dc 130ifexists kernel.old
d92165fe 131menuitem o "Boot DragonFly using kernel.old"
116b7e3c
MD
132menuadd cd ${base}kernel.old
133menuadd optinclude loader.conf
134menuadd optinclude loader.conf.local
135menuadd lunsetif acpi_load hint.acpi.0.disabled
136menuadd lunsetif ehci_load hint.ehci.0.disabled
137menuadd lunsetif ahci_load hint.ahci.disabled
138menuadd loadall
139menuadd boot
140menuadd set autoboot_delay=NO
5b31b6dc 141endif
116b7e3c 142
d92165fe 143menuitem s "Boot DragonFly in single user mode"
5b31b6dc 144menuadd cd ${base}${default_kernel}
116b7e3c
MD
145menuadd optinclude loader.conf
146menuadd optinclude loader.conf.local
d92165fe 147menuadd set boot_single="YES"
116b7e3c
MD
148menuadd lunsetif acpi_load hint.acpi.0.disabled
149menuadd lunsetif ehci_load hint.ehci.0.disabled
150menuadd lunsetif ahci_load hint.ahci.disabled
151menuadd loadall
152menuadd boot
153menuadd set autoboot_delay=NO
154
d92165fe 155menuitem v "Boot DragonFly with verbose logging"
5b31b6dc 156menuadd cd ${base}${default_kernel}
fc350ba1
MD
157menuadd optinclude loader.conf
158menuadd optinclude loader.conf.local
d92165fe 159menuadd set boot_verbose=YES
fc350ba1
MD
160menuadd lunsetif acpi_load hint.acpi.0.disabled
161menuadd lunsetif ehci_load hint.ehci.0.disabled
162menuadd lunsetif ahci_load hint.ahci.disabled
163menuadd loadall
164menuadd boot
116b7e3c
MD
165menuadd set autoboot_delay=NO
166
365948c8 167ifexists SMP
5b31b6dc 168menuitem m "Select SMP kernel"
365948c8 169menuadd set default_kernel=SMP
5b31b6dc
MD
170menuadd include ${base}defaults/dloader.menu
171menuadd optinclude ${base}dloader.menu
172menuadd menu
173endif
174
116b7e3c
MD
175menuitem R "Reboot"
176menuadd reboot