* Setting the variable "boot.hint.ahci_disabled" in the boot loader will
disable the AHCI driver's probe, causing AHCI devices to fall back to
the NATA driver.
* The boot menu now has an option to boot with the AHCI driver disabled.
variable bootacpikey
variable bootsafekey
variable bootverbosekey
+variable bootahcikey
variable bootsinglekey
variable escapekey
variable rebootkey
printmenuitem ." Boot DragonFly in Safe Mode" bootsafekey !
printmenuitem ." Boot DragonFly in single user mode" bootsinglekey !
printmenuitem ." Boot DragonFly with verbose logging" bootverbosekey !
+ printmenuitem ." Boot DragonFly without AHCI driver " bootahcikey !
printmenuitem ." Escape to loader prompt" escapekey !
printmenuitem ." Reboot" rebootkey !
menuX @ 20 at-xy
s" YES" s" boot_verbose" setenv
0 boot
then
+ dup bootahcikey @ = if
+ s" YES" s" hint.ahci.disabled" setenv
+ 0 boot
+ then
dup bootsinglekey @ = if
s" YES" s" boot_single" setenv
0 boot
{
const struct ahci_device *ad;
+ if (kgetenv("hint.ahci.disabled"))
+ return(ENXIO);
+
ad = ahci_lookup_device(dev);
if (ad) {
device_set_desc(dev, ad->name);