kairos
kairos copied to clipboard
:hedgehog: some bind mounts fail
with reason probably
[ 25.302872] immucore[637]: * mkdir /sysroot/etc/ssl/certs: file exists
[ 25.303350] immucore[637]: * mkdir /sysroot/snap: read-only file system
- /sysroot/snap can only be mounted if the rootfs has a snap dir already, as /sysroot is read only (Its the image mounted!) and that will only happen under ubuntu base images. So either we create the dir everywhere or we detect if we are running under ubuntu and skip that?
- /sysroot/etc/ssl/certs cant be binded becuase it already exists. Not sure what to do there... if we force bind then we lose whatever certs are there. And not sure why we need that dir binded, probably to add extra certs?
FYI both this errors occur in kairos master as well, so this is not related to immucore but it would be nice to have them fixed somehow
On ubuntu those 2 messages do not show but instead a new one appears yay!
[ 11.166517] immucore[678]: * mkdir /sysroot/usr/share/pki: read-only file system
ah I see /etc/ssl/certs fails due to not being able to create it. Maybe the createIfNotExists is not working properly in that case...it should not try to create it.
This is being tracked in a different card and has already a PR to alleviate it
Relates to https://github.com/kairos-io/kairos/issues/1367
is there still something to do here ? @kairos-io/maintainers
Still valid, as it shows as a warning with an error attached that can lead to confusion.
We need to find some way of fixing this so it doesn't error out that loudly without hiding real errors on bind mounts or we fix the underlying issue.