#750 SeaGRUB removable devices handling

Open
opened 3 months ago by swiftgeek · 0 comments
  • There is no way to discern pendrive from internal hdd from ODD from grub right now, and with grub-i386-pc not even a pendrive¹ is different.
  • Once BIOS loads a bootloader, storage device list is fixed (ie. no hotplug)
  • Does BIOS/SeaBIOS provide any context clues about drive being removable? Or anything about vendor/path/type.
  • Perhaps only USB can be handled by native drivers, using biosdisk for rest (that doesn't resolve internal USBMS devices used as boot devices)
    • I didn't test this, nativedisk/biosdisk probably conflict?
  • Perhaps disable ports using hwmatch and functional disable of chipset?
    • That will probably break grub as device BIOS points to doesn't respond
    • It makes more sense on grub baremetal, where function disable can be performed before loading ahci/ata/usb modules
  • Perhaps have RTC NVRAM variable, that would instruct SeaBIOS to expose all/internal/external devices only
  • Is SeaBIOS device order even predictable? (like is AHCI enumerated before USB?)

¹ It's sorta a bogus claim as eSATA is a thing so USB/AHCI ain't really implying at thing

* There is no way to discern pendrive from internal hdd from ODD from grub right now, and with grub-i386-pc not even a pendrive¹ is different. * Once BIOS loads a bootloader, storage device list is fixed (ie. no hotplug) * Does BIOS/SeaBIOS provide any context clues about drive being removable? Or anything about vendor/path/type. * Perhaps only USB can be handled by native drivers, using biosdisk for rest (that doesn't resolve internal USBMS devices used as boot devices) * I didn't test this, nativedisk/biosdisk probably conflict? * Perhaps disable ports using hwmatch and functional disable of chipset? * That will probably break grub as device BIOS points to doesn't respond * It makes more sense on grub baremetal, where function disable can be performed before loading ahci/ata/usb modules * Perhaps have RTC NVRAM variable, that would instruct SeaBIOS to expose all/internal/external devices only * Is SeaBIOS device order even predictable? (like is AHCI enumerated before USB?) ¹ It's sorta a bogus claim as eSATA is a thing so USB/AHCI ain't really implying at thing
Sign in to join this conversation.
Loading...
Cancel
Save
There is no content yet.