You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
composefs: Pass physical_root down instead of accessing global /sysroot
Refactor `get_sysroot_parent_dev()` to accept a `physical_root: &Dir`
parameter instead of hardcoding access to `/sysroot`. This continues
the ongoing work to eliminate global state access in the composefs
backend, following the same pattern as the recent BootedComposefs
and BootedOstree refactoring.
The function now uses `inspect_filesystem_of_dir()` which operates
on a Dir fd.
All callers updated to pass `&storage.physical_root` or open a Dir
for the upgrade code paths. Helper functions like `list_bootloader_entries()`
and `delete_depl_boot_entries()` also updated to accept and pass down
the physical_root parameter.
Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <[email protected]>
0 commit comments