dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
597 stars 396 forks source link

modules: remove undefined $libdir var ref in 01-systemd-repart #2536

Closed berrange closed 10 months ago

berrange commented 10 months ago

Nothing in dracut appears to define the '$libdir' environment variable when module scripts are being run. As a result when the 01-systemd-repart module script runs, it fails to copy any of the config files into the initrd. Replace it with '/usr/lib' which reflects where systemd-repart expects its global config files.

AdrianVovk commented 8 months ago

apparently no one has tested or used this module.

The module is used and tested. It's just that systemd-repart will automatically look into /sysroot/usr/... for its config files whenever it can, instead of using the config in the initrd