From mboxrd@z Thu Jan 1 00:00:00 1970 From: alf@i100.no To: development@lists.ipfire.org Subject: Re: [PATCH] dracut: Update to 056 Date: Sun, 06 Mar 2022 00:12:38 +0100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3233858831343204873==" List-Id: --===============3233858831343204873== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable At 2022-03-05 23:13, alf(a)i100.no wrote: > Hi >=20 > 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 >=20 > https://github.com/ipfire/ipfire-2.x/blob/master/lfs/dracut#L79 > rm -rf > /usr/lib/dracut/modules.d/*{biosdevname,bootchart,dash,fips*,modsign,busybo= x,convertfs,network,ifcfg,url-lib,gensplash,cms,plymouth,btrfs,crypt*,dm,dmra= id,dmsquash-live,livenet,lvm,multipath,qemu*,cifs,dasd*,fcoe*,iscsi,nbd,nfs,r= esume,ssh-client,zfcp*,systemd*,znet,securityfs,masterkey,selinux,usrmount,ue= fi-lib} >=20 > I am assuming that is removing dracut modules that one for certain do=20 > 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. >=20 >=20 > 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. >=20 > 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. >=20 >=20 > 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. >=20 > Regards > Alf I also do not understand why the https://github.com/ipfire/ipfire-2.x/blob/master/config/rootfiles/common/drac= ut contains commented out files of dracut that are actually installed on my=20 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,=20 while these files seems to have been commented out with "#" in july 2014. My system is fresh install of 2022, but with restoring config=20 originating from many years back in time. Regards Alf --===============3233858831343204873==--