Open ahesford opened 2 years ago
Should the ZFS dracut module be opt-in only?
That was always the intent and why there was a separate dracut rpm sub-package. The notion was it would only be installed if dracut module was intended to be used, but that of course assumes the repo provided packaging.
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.
The
check
function in the dracut module installation script90zfs/module-setup.sh
returns0
as long as ZFS userland utilities are found in the path. This tells dracut to automatically include the module. However, many users may have ZFS installed without having a ZFS root filesystem, and the dracut module shouldn't necessarily be included in the initramfs in these circumstances.Returning
255
tells dracut never to include a module by default, instead requiring that it be added to a dracut configuration. Should the ZFS dracut module be opt-in only?Advantage:
Disadvantage:
https://github.com/openzfs/zfs/pull/13589 is my proposal to mitigate the potential harm caused by automatic inclusion of the ZFS dracut module whenever the userland utilities are installed; however, thought should be given to disallowing automatic dracut module installation.