Comment 7 for bug 80385

Revision history for this message
Colin Watson (cjwatson) wrote :

Oliver: while this is true, I think it should indeed be a separate bug. /lib/modules is significantly harder to do anything about in Ubiquity. It would be possible, and merely fiddly rather than difficult, to "fill in" parts of /lib/modules from the initramfs if they aren't in the live filesystem. However, in order for this to do any good, you have to remove the modules from the live filesystem as well. Now, what happens if the modules in question don't get loaded by the initramfs for whatever reason but are needed later on? You'd have to copy /lib/modules from the initramfs to the unionfs as well, and that would take up a lot of memory. Even if you copied only those modules that haven't been loaded, that would cause reliability problems: unloading and then reloading any module that had been loaded during the initramfs would fail.

I think this might be tractable for specific devices, but so far I haven't thought of a general-purpose way to exploit this duplication.