mirror of
https://github.com/edera-dev/sprout.git
synced 2026-11-04 16:42:20 +00:00
feat(boot): reconnect only storage for filesystem drivers (#130)
Add a provides field to drivers, either any or filesystems. When every driver only provides filesystems, only disk and partition controllers are reconnected.
This commit is contained in:
3 files changed
+79
-18
No files matched your search
+9
-3
@@ -161,11 +161,17 @@ controller so the new filesystems appear. Drivers have no defined load order.
|
||||
```toml
|
||||
[drivers.ext4]
|
||||
path = "\\sprout\\drivers\\ext4.efi"
|
||||
provides = "filesystems"
|
||||
```
|
||||
|
||||
| Key | Meaning |
|
||||
|--------|--------------------------------------------------------|
|
||||
| `path` | Path to the driver image. Required. Can use values. |
|
||||
| Key | Default | Meaning |
|
||||
|------------|---------|-------------------------------------------------------------------------|
|
||||
| `path` | | Path to the driver image. Required. Can use values. |
|
||||
| `provides` | `any` | What the driver provides: `any` or `filesystems`. |
|
||||
|
||||
With `filesystems`, the driver only adds filesystem or disk support. When every driver says so, Sprout
|
||||
reconnects only the disk and partition controllers instead of all of them. A single `any` driver makes
|
||||
Sprout reconnect every controller.
|
||||
|
||||
The name (`ext4` above) is only for error messages and doesn't have to match the file.
|
||||
|
||||
|
||||
Reference in new issue
Block a user