Replies: 4 comments 5 replies
-
I think it'd be useful beyond just this UKI case; we have cases where people are getting additional kmods fetched dynamically from elsewhere, and having a place to drop them in That said I share the thought that it's a bit weird to have modules in the initramfs that aren't builtin anyways but maybe it does save some potential bug blast radius? |
Beta Was this translation helpful? Give feedback.
-
I think generally it makes a ton of sense to teach the various low-level tools on this planet to read from /run/ in addition to /usr/. The issue I personally dislike about these specific approaches is that we have to copy all the files from initrd to /run for this, which is not precisely free (not because copying memory was slow, but because we do it for a lot of inodes). I wished there was a better way. for example, if we could bind mount the module tree over instead of copying, that would be a lot nicer. But that conflicts with the messy way how initrd→host transition works (which involves basically an hence, if you want to do this, and you have a lot of modules, maybe that should be addressed somehow. For example, what we might be able to do, is to maybe set an xattr on some inode. When "rm -rf" we'd skip inodes marked like that (and their parents) or so. (but not sure whether initrd cpios support xattrs, i think tehy don't). |
Beta Was this translation helpful? Give feedback.
-
Paraphrasing few questions from the linked kmod issue:
|
Beta Was this translation helpful? Give feedback.
-
Hi all, I tried to implement the suggested changes in this PR: kmod-project/kmod#261 |
Beta Was this translation helpful? Give feedback.
-
I've opened kmod-project/kmod#202 already but just want to raise the visibility.
The idea is to make UKIs self sufficient in terms of kernel modules. Currently, modules from initramfs are not available in the main system and users are forced to keep a second copy (for the matching
uname -r
) on the rootfs. To make a real world example of the usage, Fedora/CentOS/RHEL distros now ship 'kernel-uki-virt' package with a UKI which is self sufficient in many cases. The package, however, has to have a dependency on 'kernel-modules-core' so basically the same set of modules is available post boot. This is needed when e.g. a filesystem module which was not used for root filesystem need to be loaded to mount some other volume (and ESP is the most common example). The desire is to be able to break this dependency for 'minimal' cloud/VM images but still support the case when people want to install ''kernel-modules-core'/'kernel-modules'/'kernel-modules-extra' post boot and enjoy additional modules.Beta Was this translation helpful? Give feedback.
All reactions