bootc-image-builder icon indicating copy to clipboard operation
bootc-image-builder copied to clipboard

default target and keyboard ignored

Open woprandi opened this issue 8 months ago • 4 comments

I have this Containerfile to build a custom image iso derived from silverblue :

FROM quay.io/fedora-ostree-desktops/silverblue:42

RUN systemctl enable sshd

RUN bootc container lint

LABEL containers.bootc 1
LABEL ostree.bootable 1

RUN systemctl set-default graphical.target

RUN ostree container commit

And this config.toml for kickstart

[customizations.installer.kickstart]
contents = """
text --non-interactive
zerombr
clearpart --all --initlabel 
firstboot --enable
lang fr_FR
keyboard fr
autopart --encrypted --passphrase=mypassphrase
timezone Europe/Paris --utc
"""

I build iso with this command :

 sudo podman run --rm -it --privileged --pull=newer \
      --security-opt label=type:unconfined_t \
      -v ./output:/output \
      -v /var/lib/containers/storage:/var/lib/containers/storage \
      -v ./config.toml:/config.toml:ro \
      quay.io/centos-bootc/bootc-image-builder:latest \
      --type iso \
      --chown 1000:1000 \
      localhost/testosbuild

localhost/testosbuild is my image from Containerfile. I have 2 problems :

  • the default keyboard layout is still US despite kickstart lang and keyboard
  • the default target (graphical) seems ignored, the first boot is text and I have to re-run systemctl set-default graphical.target and reboot

woprandi avatar May 07 '25 15:05 woprandi

I'm also not able to see changes intended by using the kickstart file. Tried adding users to the kickstart file but not seeing them on boot.

Bohne456 avatar May 08 '25 18:05 Bohne456

lang fr_FR
keyboard fr

This is https://bugzilla.redhat.com/show_bug.cgi?id=1890085

the default target (graphical) seems ignored, the first boot is text and I have to re-run systemctl set-default graphical.target and reboot

Yeah that's an Anaconda bug that you should be able to work around by setting the default target in the kickstart. Not sure if there's a tracker.

cgwalters avatar May 08 '25 20:05 cgwalters

Yeah that's an Anaconda bug that you should be able to work around by setting the default target in the kickstart. Not sure if there's a tracker.

xconfig --startonboot seems to fix. I thought it was X11 specific. Kickstart doc still says "X Window System"

woprandi avatar May 09 '25 11:05 woprandi

For locale, I tried bootloader --append="vconsole.keymap=fr-oss" (I have that in my own /etc/vconsole.conf). Plymouth now displays "fr" next to the keyboard icon but..... it's still qwerty.... So it's possible to have different layout that the one displayed on plymouth...

woprandi avatar May 09 '25 11:05 woprandi

I opened upstream bug : https://bugzilla.redhat.com/show_bug.cgi?id=2418066

woprandi avatar Dec 02 '25 16:12 woprandi