There's a closed pull request on the void-packages repository Improve consistency of relative paths in kernel hooks https://github.com/void-linux/void-packages/pull/24079 Description: Motivated by a breakage in the `dracut` removal hook as called from `vkpurge`, I cleaned up several packages that install kernel hooks to try to make their behavior more consistent. The XBPS trigger runs hooks from the target root directory with `ROOTDIR` set, so hooks should accommodate this if possible. `vkpurge` now changes to `/` and sets `ROOTDIR` to make sure any hooks it calls work as expected. It would be good to verify correct operation of all hooks after these changes, but `dkms` and `dracut` seem to be the most critical. - [x] base-files - [x] dkms - [x] dracut - [ ] gummiboot - [ ] mkinitcpio - [x] refind - [x] sbsigntool **Note 1**: `dracut` now uses `--sysroot .` to (hopefully) operate properly in a relative environment. **Note 2**: `dkms` makes a lot of assumptions about running in the system root that are trickier to override, and the hook already made a lot of absolute path references, so I went all-in on absolute paths in the `dkms` hooks. Affected maintainers: @Gottox @q66 @thypon @sgn General interest: @ericonr @duncaen