diff --git a/etc/dracut.conf.d/README.md b/etc/dracut.conf.d/README.md index 2d84c144..90a08d96 100644 --- a/etc/dracut.conf.d/README.md +++ b/etc/dracut.conf.d/README.md @@ -1,6 +1,21 @@ -My dracut configuratino files mainly for generating unified kerneil images +My dracut configuration files mainly for generating unified kerneil images (uki). + + + + + + +- [WARNING!](#warning) + - [network](#network) + - [hostonly](#hostonly) + + + + + + # WARNING! Sedric has a 96M EFI partition courtesy of Windows and thus it has a lot of @@ -8,3 +23,33 @@ attempts for decreasing the kernel size. Since moving it to UKI, I am yet to go through what of it is actually useful and worth keeping around and at least disabling recovery seems dangerous if I can save space by omitting somnething else. + +## network + +``` +dracut[E]: Module 'cifs' depends on 'network', which can't be installed +dracut[E]: Module 'iscsi' depends on 'network', which can't be installed +dracut[E]: Module 'nvmf' depends on 'network', which can't be installed +``` + +I think nvmf might be relevant on ThinkPads, so it gets out of `omit_modules` + +At least it resolves these two… + + +Error registering initrd: Already started +Error starting kernel image: Already started + + +…which cause fallback to the next UEFI boot entry (why is that grub still +around?) + +## hostonly + +Will make a UKI specific to the current hardware and is discouraged as it will +obviously prevent booting on a different hardware and hardware changes may +render the system unbootable. However I am more of a software person, so I +imagine that is unlikely to happen for me. + +If planning hardware changes, maybe disable this flag? Or maybe if you have +infinite space for kernel, keep it off? diff --git a/etc/dracut.conf.d/hostonly.conf.sedric b/etc/dracut.conf.d/hostonly.conf similarity index 100% rename from etc/dracut.conf.d/hostonly.conf.sedric rename to etc/dracut.conf.d/hostonly.conf diff --git a/etc/dracut.conf.d/omit_modules.conf b/etc/dracut.conf.d/omit_modules.conf index 9cc8298e..90bc82fe 100644 --- a/etc/dracut.conf.d/omit_modules.conf +++ b/etc/dracut.conf.d/omit_modules.conf @@ -1 +1 @@ -omit_dracutmodules+=" plymouth kernel-modules-extra network-manager network-legacy connman systemd-networkd i18n network net-lib kernel-network-modules qemu qemu-net kernel-modules-asahi nfs asahi-firmware " +omit_dracutmodules+=" plymouth kernel-modules-extra network-manager network-legacy connman systemd-networkd i18n net-lib kernel-network-modules qemu qemu-net kernel-modules-asahi nfs asahi-firmware "