kairos icon indicating copy to clipboard operation
kairos copied to clipboard

:hedgehog: some bind mounts fail

Open Itxaka opened this issue 1 year ago • 7 comments

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?

Itxaka avatar Feb 15 '23 15:02 Itxaka

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

Itxaka avatar Feb 20 '23 08:02 Itxaka

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

Itxaka avatar Mar 02 '23 20:03 Itxaka

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.

Itxaka avatar Mar 02 '23 20:03 Itxaka

This is being tracked in a different card and has already a PR to alleviate it

Itxaka avatar May 08 '23 14:05 Itxaka

Relates to https://github.com/kairos-io/kairos/issues/1367

mauromorales avatar Dec 11 '23 09:12 mauromorales

is there still something to do here ? @kairos-io/maintainers

mudler avatar Mar 27 '24 14:03 mudler

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.

Itxaka avatar Mar 27 '24 15:03 Itxaka