snapcore / core-initrd

initrd implementation in ubuntu core
https://ubuntu.com/core/docs
GNU General Public License v3.0
9 stars 27 forks source link

factory: create mount units specific to classic #201

Closed alfonsosanchezbeato closed 1 year ago

alfonsosanchezbeato commented 1 year ago

On mantic, systemd has changed behavior and it does not run daemon-reload from the initrd-parse-etc service if there is nothing that specifically needs that in /etc/fstab, so we were not running kernel-snap-generator again at this point, which meant we did not mount /lib/{modules,firmware} on classic systems. To fix that, force re-running the generators from a service that runs after we have the needed mountpoints.

With this kernel modules can be loaded again and snapd.seeded can progress on classic systems.

alfonsosanchezbeato commented 1 year ago

Maybe we should instead not use the generator, but opening for comments. Although in the end what we really want is to have this generator in a deb.

alfonsosanchezbeato commented 1 year ago

Merging, the issue with tests is happening due to what seems to be a problem with 23.10 image and we want this in asap.