At 2022-03-05 23:13, alf@i100.no wrote:
Hi
Regarding the new modules that have been added to dracut after v38, and the possible systemd dependencies, I wonder a bit about this line in the Makefile of dracut in ipfire
https://github.com/ipfire/ipfire-2.x/blob/master/lfs/dracut#L79 rm -rf /usr/lib/dracut/modules.d/*{biosdevname,bootchart,dash,fips*,modsign,busybox,convertfs,network,ifcfg,url-lib,gensplash,cms,plymouth,btrfs,crypt*,dm,dmraid,dmsquash-live,livenet,lvm,multipath,qemu*,cifs,dasd*,fcoe*,iscsi,nbd,nfs,resume,ssh-client,zfcp*,systemd*,znet,securityfs,masterkey,selinux,usrmount,uefi-lib}
I am assuming that is removing dracut modules that one for certain do not need. I guess some of the new modules introduced between v38 and v56(current) of dracut should also be but on that "rm" list ? I.e some new dracut modules depends on systemd, and some are for s390, for example.
I was playing a bit with grep'ing the module-setup.sh files of dracut, to find modules that depends on systemd for example. I.e. some way of finding the modules that "at least" should be put on the "rm" list. I'm unsure if you have any semi automatic way of doing that, or are fully manually needing to review the modules.
From what I can see, dracut should fully support being used without systemd, since the modules are signalling dependencies on systemd. But modules that are only for s390 for example, needs to be detected manually I think.
The dracut.conf file also has the possibility to omit modules, by the omit_dracutmodules variable, but that does not seem to be used currently by ipfire.
Regards Alf
I also do not understand why the https://github.com/ipfire/ipfire-2.x/blob/master/config/rootfiles/common/dra... contains commented out files of dracut that are actually installed on my ipfire system
For example #usr/lib/dracut/modules.d/90kernel-modules/parse-kernel.sh
and #usr/lib/dracut/modules.d/02caps #usr/lib/dracut/modules.d/02caps/README #usr/lib/dracut/modules.d/02caps/caps.sh #usr/lib/dracut/modules.d/02caps/module-setup.sh
just as two examples, there seems to be plenty more.
I see that the dates for those files on my ipfire is from june 2014, while these files seems to have been commented out with "#" in july 2014. My system is fresh install of 2022, but with restoring config originating from many years back in time.
Regards Alf