-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't configure root user #143
Comments
We will drop the user customization from bib fairly soon, let's close this. |
While I am generally in favor of doing user customization via other mechanisms of:
I think there are clear enough use cases for doing it via bib. We ended up adding a very specific bootc install argument for this. Once bib uses bootc install there's a clear use case to pass through to that, right? |
if I create an ISO from BIB, how should I set passwords and ssh keys? The only way I can figure out is to use mkksiso to over write the kickstart and that feels more prone to problems. I totally agree w/ cloud-init and what not for AMIs, but BIB creates bootable media too. What am I missing? |
It's always valid to embed SSH keys into the container image, see https://centos.github.io/centos-bootc/builds/#injecting-users-at-build-time It's also possible to use the network as SSH source of truth (this is what IPA etc. are about, but it's doable at smaller scales too). This said, it is known that the ISO is totally unconfigurable, and that needs to be fixed. |
So as far as fixing the ssh key injection, today anaconda does this: We could do the same here; or just create the target of But as of lately we are backpedaling a bit on the "strictly empty /var" model, so CentOS/centos-bootc#354 would also likely fix this. In the end though my preference is to default to matching bootc is doing here (and systemd suggests upstream with |
For reference, this works around it:
|
Thanks @cgwalters, that trick works 💯 ⭐ |
Currently creating a customization for the root user does not work because `/var/roothome` may not be avaialble in the image. This commit ensures it is created if needed just like we do for `/var/home`. Closes osbuild/bootc-image-builder#143
Currently creating a customization for the root user does not work because `/var/roothome` may not be avaialble in the image. This commit ensures it is created if needed just like we do for `/var/home`. Closes osbuild/bootc-image-builder#143
Currently creating a customization for the root user does not work because `/var/roothome` may not be avaialble in the image. This commit ensures it is created if needed just like we do for `/var/home`. Closes osbuild/bootc-image-builder#143
Currently creating a customization for the root user does not work because `/var/roothome` may not be avaialble in the image. This commit ensures it is created if needed just like we do for `/var/home`. Closes osbuild/bootc-image-builder#143
Having a root user configuration breaks the build because, when an existing user is modified, osbuild runs
mkhomedir_helper
and the following error occurs:Reproduce by running bib with the following config:
The text was updated successfully, but these errors were encountered: