Open runcom opened 9 months ago
I think we need to try to minimize whatever is happening in your container build here that's breaking this.
We definitely work with derived images - in fact the -dev
images are already derived.
I think it's one of the packages there, my initial suspect was flatpak-selinux
but we work with that.
(Man, testing this is just super annoying with having to push images to a remote registry for each iteration; cc https://github.com/osbuild/bootc-image-builder/issues/90 )
@cgwalters alrighty, I'll try to narrow it down and provide more info (and yeah, super annoying to test and iterate for a bug like this)
I think it's one of the packages there
so, the specific error thrown, if we look at the osbuild stage source, points to the fact that there's no selinux policy at all on the system, despite being there under /etc/selinux for instance. How can you tell it's a package?
ok, it's gnome-kiosk-script-session
that causes the selinux error in osbuild, otherwise, it builds just fine it seems
the transaction on the -dev container is this one and flatpak-selinux is there
bash-5.1# rpm-ostree install gnome-kiosk-script-session
Enabled rpm-md repositories: copr-coreos-continuous copr-rhcontainerbot-bootc extras-common baseos appstream
Updating metadata for 'copr-coreos-continuous'... done
Updating metadata for 'copr-rhcontainerbot-bootc'... done
Updating metadata for 'extras-common'... done
Updating metadata for 'baseos'... done
Updating metadata for 'appstream'... done
Importing rpm-md... done
rpm-md repo 'copr-coreos-continuous'; generated: 2024-02-01T15:12:05Z solvables: 188
rpm-md repo 'copr-rhcontainerbot-bootc'; generated: 2024-02-01T13:20:05Z solvables: 79
rpm-md repo 'extras-common'; generated: 2023-10-24T11:42:57Z solvables: 72
rpm-md repo 'baseos'; generated: 2024-01-30T10:19:19Z solvables: 3480
rpm-md repo 'appstream'; generated: 2024-01-30T10:21:59Z solvables: 12689
Resolving dependencies... done
Will download: 206 packages (134.8?MB)
Downloading from 'baseos'... done
Downloading from 'appstream'... done
Installing 206 packages:
ModemManager-glib-1.20.2-1.el9.aarch64 (baseos)
abattis-cantarell-fonts-0.301-4.el9.noarch (appstream)
adobe-source-code-pro-fonts-2.030.1.050-12.el9.1.noarch (baseos)
adwaita-cursor-theme-40.1.1-3.el9.noarch (appstream)
adwaita-icon-theme-40.1.1-3.el9.noarch (appstream)
alsa-lib-1.2.10-2.el9.aarch64 (appstream)
at-spi2-atk-2.38.0-4.el9.aarch64 (appstream)
at-spi2-core-2.40.3-1.el9.aarch64 (appstream)
atk-2.36.0-5.el9.aarch64 (appstream)
avahi-glib-0.8-20.el9.aarch64 (appstream)
bluez-libs-5.56-6.el9.aarch64 (baseos)
cairo-1.17.4-7.el9.aarch64 (appstream)
cairo-gobject-1.17.4-7.el9.aarch64 (appstream)
centos-backgrounds-90.4-1.el9.noarch (appstream)
centos-logos-90.4-1.el9.aarch64 (appstream)
checkpolicy-3.6-1.el9.aarch64 (appstream)
color-filesystem-1-28.el9.noarch (appstream)
colord-1.4.5-4.el9.aarch64 (appstream)
colord-libs-1.4.5-4.el9.aarch64 (appstream)
cups-libs-1:2.3.3op2-22.el9.aarch64 (baseos)
dconf-0.40.0-6.el9.aarch64 (appstream)
dejavu-sans-fonts-2.37-18.el9.noarch (baseos)
desktop-file-utils-0.26-6.el9.aarch64 (appstream)
emacs-filesystem-1:27.2-9.el9.noarch (appstream)
enchant2-2.2.15-6.el9.aarch64 (appstream)
exempi-2.6.0-0.2.20211007gite23c213.el9.aarch64 (appstream)
exiv2-0.27.5-2.el9.aarch64 (appstream)
exiv2-libs-0.27.5-2.el9.aarch64 (appstream)
fdk-aac-free-2.0.0-8.el9.aarch64 (appstream)
flac-libs-1.3.3-12.el9.aarch64 (appstream)
flatpak-1.12.8-1.el9.aarch64 (appstream)
flatpak-selinux-1.12.8-1.el9.noarch (appstream)
flatpak-session-helper-1.12.8-1.el9.aarch64 (appstream)
fontconfig-2.14.0-2.el9.aarch64 (appstream)
fonts-filesystem-1:2.0.5-7.el9.1.noarch (baseos)
freetype-2.10.4-9.el9.aarch64 (baseos)
fribidi-1.0.10-6.el9.2.aarch64 (appstream)
gcr-base-3.40.0-3.el9.aarch64 (appstream)
gdk-pixbuf2-2.42.6-3.el9.aarch64 (appstream)
gdk-pixbuf2-modules-2.42.6-3.el9.aarch64 (appstream)
gedit-2:40.0-6.el9.aarch64 (appstream)
geoclue2-2.6.0-7.el9.aarch64 (appstream)
geoclue2-libs-2.6.0-7.el9.aarch64 (appstream)
geocode-glib-3.26.2-5.el9.aarch64 (appstream)
giflib-5.2.1-9.el9.aarch64 (appstream)
glib-networking-2.68.3-3.el9.aarch64 (baseos)
gnome-control-center-filesystem-40.0-30.el9.noarch (appstream)
gnome-desktop3-40.4-1.el9.aarch64 (appstream)
gnome-kiosk-40.0-5.el9.aarch64 (appstream)
gnome-kiosk-script-session-40.0-5.el9.noarch (appstream)
gnome-session-40.1.1-9.el9.aarch64 (appstream)
gnome-settings-daemon-40.0.1-16.el9.aarch64 (appstream)
graphene-1.10.6-2.el9.aarch64 (appstream)
graphite2-1.3.14-9.el9.aarch64 (baseos)
gsettings-desktop-schemas-40.0-6.el9.aarch64 (baseos)
gsm-1.0.19-6.el9.aarch64 (appstream)
gspell-1.9.1-3.el9.aarch64 (appstream)
gstreamer1-1.22.1-2.el9.aarch64 (appstream)
gstreamer1-plugins-base-1.22.1-2.el9.aarch64 (appstream)
gtk-update-icon-cache-3.24.31-2.el9.aarch64 (appstream)
gtk3-3.24.31-2.el9.aarch64 (appstream)
gtksourceview4-4.8.1-5.el9.aarch64 (appstream)
gvfs-1.48.1-4.el9.aarch64 (appstream)
gvfs-client-1.48.1-4.el9.aarch64 (appstream)
harfbuzz-2.7.4-10.el9.aarch64 (baseos)
hicolor-icon-theme-0.17-13.el9.noarch (appstream)
hunspell-1.7.0-11.el9.aarch64 (appstream)
hunspell-en-US-0.20140811.1-20.el9.noarch (appstream)
hunspell-filesystem-1.7.0-11.el9.aarch64 (appstream)
hwdata-0.348-9.12.el9.noarch (baseos)
ibus-libs-1.5.25-5.el9.aarch64 (appstream)
iio-sensor-proxy-3.3-1.el9.aarch64 (appstream)
iso-codes-4.6.0-3.el9.noarch (appstream)
jbigkit-libs-2.1-23.el9.aarch64 (appstream)
langpacks-core-font-en-3.0-16.el9.noarch (appstream)
lcms2-2.12-3.el9.aarch64 (appstream)
libICE-1.0.10-8.el9.aarch64 (appstream)
libSM-1.2.3-10.el9.aarch64 (appstream)
libX11-1.7.0-9.el9.aarch64 (appstream)
libX11-common-1.7.0-9.el9.noarch (appstream)
libX11-xcb-1.7.0-9.el9.aarch64 (appstream)
libXau-1.0.9-8.el9.aarch64 (appstream)
libXcomposite-0.4.5-7.el9.aarch64 (appstream)
libXcursor-1.2.0-7.el9.aarch64 (appstream)
libXdamage-1.1.5-7.el9.aarch64 (appstream)
libXext-1.3.4-8.el9.aarch64 (appstream)
libXfixes-5.0.3-16.el9.aarch64 (appstream)
libXft-2.3.3-8.el9.aarch64 (appstream)
libXi-1.7.10-8.el9.aarch64 (appstream)
libXinerama-1.1.4-10.el9.aarch64 (appstream)
libXrandr-1.5.2-8.el9.aarch64 (appstream)
libXrender-0.9.10-16.el9.aarch64 (appstream)
libXtst-1.2.3-16.el9.aarch64 (appstream)
libXv-1.0.11-16.el9.aarch64 (appstream)
libXxf86vm-1.1.4-18.el9.aarch64 (appstream)
libappstream-glib-0.7.18-4.el9.aarch64 (appstream)
libasyncns-0.8-22.el9.aarch64 (appstream)
libcanberra-0.30-27.el9.aarch64 (appstream)
libcanberra-gtk3-0.30-27.el9.aarch64 (appstream)
libcdio-2.1.0-6.el9.aarch64 (appstream)
libcdio-paranoia-10.2+2.0.1-6.el9.aarch64 (appstream)
libdatrie-0.2.13-4.el9.aarch64 (appstream)
libdrm-2.4.117-1.el9.aarch64 (appstream)
libepoxy-1.5.5-4.el9.aarch64 (appstream)
libevdev-1.11.0-3.el9.aarch64 (appstream)
libexif-0.6.22-6.el9.aarch64 (appstream)
libgexiv2-0.12.3-1.el9.aarch64 (appstream)
libglvnd-1:1.3.4-1.el9.aarch64 (appstream)
libglvnd-egl-1:1.3.4-1.el9.aarch64 (appstream)
libglvnd-gles-1:1.3.4-1.el9.aarch64 (appstream)
libglvnd-glx-1:1.3.4-1.el9.aarch64 (appstream)
libgsf-1.14.47-5.el9.aarch64 (appstream)
libgweather-40.0-3.el9.aarch64 (appstream)
libgxps-0.3.2-3.el9.aarch64 (appstream)
libinput-1.19.3-4.el9.aarch64 (appstream)
libiptcdata-1.0.5-9.el9.aarch64 (appstream)
libjpeg-turbo-2.0.90-7.el9.aarch64 (appstream)
libldac-2.0.2.3-10.el9.aarch64 (appstream)
libnotify-0.7.9-8.el9.aarch64 (appstream)
libogg-2:1.3.4-6.el9.aarch64 (appstream)
libosinfo-1.10.0-1.el9.aarch64 (appstream)
libpeas-1.30.0-4.el9.aarch64 (baseos)
libpeas-gtk-1.30.0-4.el9.aarch64 (appstream)
libpeas-loader-python3-1.30.0-4.el9.aarch64 (appstream)
libpng-2:1.6.37-12.el9.aarch64 (baseos)
libproxy-0.4.15-35.el9.aarch64 (baseos)
libproxy-webkitgtk4-0.4.15-35.el9.aarch64 (appstream)
librsvg2-2.50.7-3.el9.aarch64 (appstream)
libsbc-1.4-9.el9.aarch64 (appstream)
libsecret-0.20.4-4.el9.aarch64 (appstream)
libsndfile-1.0.31-8.el9.aarch64 (appstream)
libsoup-2.72.0-8.el9.aarch64 (appstream)
libstemmer-0-18.585svn.el9.aarch64 (appstream)
libthai-0.1.28-8.el9.aarch64 (appstream)
libtheora-1:1.1.1-31.el9.aarch64 (appstream)
libtiff-4.4.0-12.el9.aarch64 (appstream)
libtool-ltdl-2.4.6-45.el9.aarch64 (appstream)
libtracker-sparql-3.1.2-3.el9.aarch64 (appstream)
libvisual-1:0.4.0-34.el9.aarch64 (appstream)
libvorbis-1:1.3.7-5.el9.aarch64 (appstream)
libwacom-1.12.1-2.el9.aarch64 (appstream)
libwacom-data-1.12.1-2.el9.noarch (appstream)
libwayland-client-1.21.0-1.el9.aarch64 (appstream)
libwayland-cursor-1.21.0-1.el9.aarch64 (appstream)
libwayland-egl-1.21.0-1.el9.aarch64 (appstream)
libwayland-server-1.21.0-1.el9.aarch64 (appstream)
libwebp-1.2.0-8.el9.aarch64 (appstream)
libxcb-1.13.1-9.el9.aarch64 (appstream)
libxkbcommon-1.0.3-4.el9.aarch64 (appstream)
libxkbcommon-x11-1.0.3-4.el9.aarch64 (appstream)
libxkbfile-1.1.0-8.el9.aarch64 (appstream)
libxshmfence-1.3-10.el9.aarch64 (appstream)
libxslt-1.1.34-9.el9.aarch64 (appstream)
low-memory-monitor-2.1-4.el9.aarch64 (appstream)
mesa-libEGL-23.3.0-1.el9.aarch64 (appstream)
mesa-libGL-23.3.0-1.el9.aarch64 (appstream)
mesa-libgbm-23.3.0-1.el9.aarch64 (appstream)
mesa-libglapi-23.3.0-1.el9.aarch64 (appstream)
mtdev-1.1.5-22.el9.aarch64 (appstream)
mutter-40.9-15.el9.aarch64 (appstream)
openjpeg2-2.4.0-7.el9.aarch64 (appstream)
opus-1.3.1-10.el9.aarch64 (appstream)
orc-0.4.31-6.el9.aarch64 (appstream)
osinfo-db-20231215-1.el9.noarch (appstream)
osinfo-db-tools-1.10.0-1.el9.aarch64 (appstream)
p11-kit-server-0.25.3-2.el9.aarch64 (appstream)
pango-1.48.7-3.el9.aarch64 (appstream)
pipewire-1.0.1-1.el9.aarch64 (appstream)
pipewire-alsa-1.0.1-1.el9.aarch64 (appstream)
pipewire-jack-audio-connection-kit-1.0.1-1.el9.aarch64 (appstream)
pipewire-jack-audio-connection-kit-libs-1.0.1-1.el9.aarch64 (appstream)
pipewire-libs-1.0.1-1.el9.aarch64 (appstream)
pipewire-pulseaudio-1.0.1-1.el9.aarch64 (appstream)
pixman-0.40.0-6.el9.aarch64 (appstream)
policycoreutils-python-utils-3.6-1.el9.noarch (appstream)
poppler-21.01.0-19.el9.aarch64 (appstream)
poppler-data-0.4.9-9.el9.noarch (appstream)
poppler-glib-21.01.0-19.el9.aarch64 (appstream)
pulseaudio-libs-15.0-2.el9.aarch64 (appstream)
pulseaudio-libs-glib2-15.0-2.el9.aarch64 (appstream)
python3-audit-3.1.2-2.el9.aarch64 (appstream)
python3-cairo-1.20.1-1.el9.aarch64 (appstream)
python3-distro-1.5.0-7.el9.noarch (baseos)
python3-gobject-3.40.1-6.el9.aarch64 (appstream)
python3-libselinux-3.6-1.el9.aarch64 (appstream)
python3-libsemanage-3.6-1.el9.aarch64 (appstream)
python3-policycoreutils-3.6-1.el9.noarch (appstream)
python3-setools-4.4.4-1.el9.aarch64 (baseos)
rtkit-0.11-28.el9.aarch64 (appstream)
sound-theme-freedesktop-0.8-17.el9.noarch (appstream)
startup-notification-0.12-23.el9.aarch64 (appstream)
totem-pl-parser-3.26.6-2.el9.aarch64 (appstream)
tracker-3.1.2-3.el9.aarch64 (appstream)
tracker-miners-3.1.2-4.el9.aarch64 (appstream)
upower-0.99.11-11.el9.aarch64 (appstream)
webkit2gtk3-jsc-2.42.4-1.el9.aarch64 (appstream)
webrtc-audio-processing-0.3.1-8.el9.aarch64 (appstream)
wireplumber-0.4.14-1.el9.aarch64 (appstream)
wireplumber-libs-0.4.14-1.el9.aarch64 (appstream)
xcb-util-0.4.0-19.el9.aarch64 (appstream)
xdg-dbus-proxy-0.1.3-1.el9.aarch64 (appstream)
xdg-desktop-portal-1.12.6-1.el9.aarch64 (appstream)
xdg-desktop-portal-gtk-1.12.0-3.el9.aarch64 (appstream)
xkeyboard-config-2.33-2.el9.noarch (appstream)
xml-common-0.6.3-58.el9.noarch (appstream)
zenity-3.32.0-8.el9.aarch64 (appstream)
warning: Signature not supported. Hash algorithm SHA1 not available.
(rpm-ostree install:3): libdnf-WARNING **: 16:06:32.966: failed to parse public key for /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras
Installing: libpng-2:1.6.37-12.el9.aarch64 (baseos)
Installing: atk-2.36.0-5.el9.aarch64 (appstream)
Installing: libwayland-client-1.21.0-1.el9.aarch64 (appstream)
Installing: libjpeg-turbo-2.0.90-7.el9.aarch64 (appstream)
Installing: gdk-pixbuf2-2.42.6-3.el9.aarch64 (appstream)
Installing: libogg-2:1.3.4-6.el9.aarch64 (appstream)
Installing: libdrm-2.4.117-1.el9.aarch64 (appstream)
Installing: libX11-xcb-1.7.0-9.el9.aarch64 (appstream)
Installing: lcms2-2.12-3.el9.aarch64 (appstream)
Installing: alsa-lib-1.2.10-2.el9.aarch64 (appstream)
Installing: libvorbis-1:1.3.7-5.el9.aarch64 (appstream)
Installing: fribidi-1.0.10-6.el9.2.aarch64 (appstream)
Installing: fonts-filesystem-1:2.0.5-7.el9.1.noarch (baseos)
Installing: colord-libs-1.4.5-4.el9.aarch64 (appstream)
Installing: libnotify-0.7.9-8.el9.aarch64 (appstream)
Installing: opus-1.3.1-10.el9.aarch64 (appstream)
Installing: libwayland-server-1.21.0-1.el9.aarch64 (appstream)
Installing: libstemmer-0-18.585svn.el9.aarch64 (appstream)
Installing: libglvnd-1:1.3.4-1.el9.aarch64 (appstream)
Installing: libXau-1.0.9-8.el9.aarch64 (appstream)
Installing: libxcb-1.13.1-9.el9.aarch64 (appstream)
Installing: mesa-libgbm-23.3.0-1.el9.aarch64 (appstream)
Installing: libICE-1.0.10-8.el9.aarch64 (appstream)
Installing: gstreamer1-1.22.1-2.el9.aarch64 (appstream)
Installing: dconf-0.40.0-6.el9.aarch64 (appstream)
Installing: libpeas-1.30.0-4.el9.aarch64 (baseos)
Installing: libSM-1.2.3-10.el9.aarch64 (appstream)
Installing: dejavu-sans-fonts-2.37-18.el9.noarch (baseos)
Installing: libwayland-cursor-1.21.0-1.el9.aarch64 (appstream)
Installing: xml-common-0.6.3-58.el9.noarch (appstream)
Installing: iso-codes-4.6.0-3.el9.noarch (appstream)
Installing: upower-0.99.11-11.el9.aarch64 (appstream)
Created symlink /etc/systemd/system/graphical.target.wants/upower.service → /usr/lib/systemd/system/upower.service.
Installing: python3-libselinux-3.6-1.el9.aarch64 (appstream)
Installing: pixman-0.40.0-6.el9.aarch64 (appstream)
Installing: mesa-libglapi-23.3.0-1.el9.aarch64 (appstream)
Installing: libxshmfence-1.3-10.el9.aarch64 (appstream)
Installing: libglvnd-egl-1:1.3.4-1.el9.aarch64 (appstream)
Installing: mesa-libEGL-23.3.0-1.el9.aarch64 (appstream)
Installing: libglvnd-gles-1:1.3.4-1.el9.aarch64 (appstream)
Installing: libwayland-egl-1.21.0-1.el9.aarch64 (appstream)
Installing: libtool-ltdl-2.4.6-45.el9.aarch64 (appstream)
Installing: libepoxy-1.5.5-4.el9.aarch64 (appstream)
Installing: libcdio-2.1.0-6.el9.aarch64 (appstream)
Installing: graphene-1.10.6-2.el9.aarch64 (appstream)
Installing: gnome-control-center-filesystem-40.0-30.el9.noarch (appstream)
Installing: gcr-base-3.40.0-3.el9.aarch64 (appstream)
Installing: centos-logos-90.4-1.el9.aarch64 (appstream)
Installing: avahi-glib-0.8-20.el9.aarch64 (appstream)
Installing: libproxy-0.4.15-35.el9.aarch64 (baseos)
Installing: hwdata-0.348-9.12.el9.noarch (baseos)
Installing: cups-libs-1:2.3.3op2-22.el9.aarch64 (baseos)
Installing: ModemManager-glib-1.20.2-1.el9.aarch64 (baseos)
Installing: osinfo-db-20231215-1.el9.noarch (appstream)
Installing: centos-backgrounds-90.4-1.el9.noarch (appstream)
Installing: libcdio-paranoia-10.2+2.0.1-6.el9.aarch64 (appstream)
Installing: python3-libsemanage-3.6-1.el9.aarch64 (appstream)
Installing: langpacks-core-font-en-3.0-16.el9.noarch (appstream)
Installing: xcb-util-0.4.0-19.el9.aarch64 (appstream)
Installing: adobe-source-code-pro-fonts-2.030.1.050-12.el9.1.noarch (baseos)
Installing: abattis-cantarell-fonts-0.301-4.el9.noarch (appstream)
Installing: gsettings-desktop-schemas-40.0-6.el9.aarch64 (baseos)
Installing: flac-libs-1.3.3-12.el9.aarch64 (appstream)
Installing: libtheora-1:1.1.1-31.el9.aarch64 (appstream)
Installing: gtk-update-icon-cache-3.24.31-2.el9.aarch64 (appstream)
Installing: libgsf-1.14.47-5.el9.aarch64 (appstream)
Installing: exiv2-libs-0.27.5-2.el9.aarch64 (appstream)
Installing: exiv2-0.27.5-2.el9.aarch64 (appstream)
Installing: libgexiv2-0.12.3-1.el9.aarch64 (appstream)
Installing: xkeyboard-config-2.33-2.el9.noarch (appstream)
Installing: libxkbcommon-1.0.3-4.el9.aarch64 (appstream)
Installing: libxkbcommon-x11-1.0.3-4.el9.aarch64 (appstream)
Installing: xdg-dbus-proxy-0.1.3-1.el9.aarch64 (appstream)
Installing: webrtc-audio-processing-0.3.1-8.el9.aarch64 (appstream)
Installing: webkit2gtk3-jsc-2.42.4-1.el9.aarch64 (appstream)
Installing: libproxy-webkitgtk4-0.4.15-35.el9.aarch64 (appstream)
Installing: glib-networking-2.68.3-3.el9.aarch64 (baseos)
Installing: libsoup-2.72.0-8.el9.aarch64 (appstream)
Installing: geoclue2-2.6.0-7.el9.aarch64 (appstream)
Installing: geocode-glib-3.26.2-5.el9.aarch64 (appstream)
Installing: geoclue2-libs-2.6.0-7.el9.aarch64 (appstream)
Installing: libappstream-glib-0.7.18-4.el9.aarch64 (appstream)
Installing: osinfo-db-tools-1.10.0-1.el9.aarch64 (appstream)
Installing: totem-pl-parser-3.26.6-2.el9.aarch64 (appstream)
Installing: sound-theme-freedesktop-0.8-17.el9.noarch (appstream)
error: unexpected argument '-l' found
tip: to pass '-l' as a value, use '-- -l'
Usage: useradd [OPTIONS] <username>
For more information, try '--help'.
Installing: rtkit-0.11-28.el9.aarch64 (appstream)
Created symlink /etc/systemd/system/graphical.target.wants/rtkit-daemon.service → /usr/lib/systemd/system/rtkit-daemon.service.
Installing: python3-audit-3.1.2-2.el9.aarch64 (appstream)
Installing: poppler-data-0.4.9-9.el9.noarch (appstream)
Installing: p11-kit-server-0.25.3-2.el9.aarch64 (appstream)
Installing: orc-0.4.31-6.el9.aarch64 (appstream)
Installing: openjpeg2-2.4.0-7.el9.aarch64 (appstream)
Installing: mtdev-1.1.5-22.el9.aarch64 (appstream)
Installing: low-memory-monitor-2.1-4.el9.aarch64 (appstream)
Created symlink /etc/systemd/system/basic.target.wants/low-memory-monitor.service → /usr/lib/systemd/system/low-memory-monitor.service.
Installing: libxslt-1.1.34-9.el9.aarch64 (appstream)
Installing: libosinfo-1.10.0-1.el9.aarch64 (appstream)
Installing: libwebp-1.2.0-8.el9.aarch64 (appstream)
Installing: libwacom-data-1.12.1-2.el9.noarch (appstream)
Installing: libwacom-1.12.1-2.el9.aarch64 (appstream)
Installing: libvisual-1:0.4.0-34.el9.aarch64 (appstream)
Installing: libsecret-0.20.4-4.el9.aarch64 (appstream)
Installing: libsbc-1.4-9.el9.aarch64 (appstream)
Installing: libldac-2.0.2.3-10.el9.aarch64 (appstream)
Installing: libiptcdata-1.0.5-9.el9.aarch64 (appstream)
Installing: libexif-0.6.22-6.el9.aarch64 (appstream)
Installing: libevdev-1.11.0-3.el9.aarch64 (appstream)
Installing: libinput-1.19.3-4.el9.aarch64 (appstream)
Installing: libdatrie-0.2.13-4.el9.aarch64 (appstream)
Installing: libthai-0.1.28-8.el9.aarch64 (appstream)
Installing: libasyncns-0.8-22.el9.aarch64 (appstream)
Installing: libX11-common-1.7.0-9.el9.noarch (appstream)
Installing: libX11-1.7.0-9.el9.aarch64 (appstream)
Installing: libXext-1.3.4-8.el9.aarch64 (appstream)
Installing: libXi-1.7.10-8.el9.aarch64 (appstream)
Installing: libXrender-0.9.10-16.el9.aarch64 (appstream)
Installing: libXfixes-5.0.3-16.el9.aarch64 (appstream)
Installing: libXcomposite-0.4.5-7.el9.aarch64 (appstream)
Installing: libXcursor-1.2.0-7.el9.aarch64 (appstream)
Installing: libXdamage-1.1.5-7.el9.aarch64 (appstream)
Installing: libXrandr-1.5.2-8.el9.aarch64 (appstream)
Installing: libXtst-1.2.3-16.el9.aarch64 (appstream)
Installing: libXinerama-1.1.4-10.el9.aarch64 (appstream)
Installing: at-spi2-core-2.40.3-1.el9.aarch64 (appstream)
Installing: at-spi2-atk-2.38.0-4.el9.aarch64 (appstream)
Installing: libXv-1.0.11-16.el9.aarch64 (appstream)
Installing: libXxf86vm-1.1.4-18.el9.aarch64 (appstream)
Installing: libglvnd-glx-1:1.3.4-1.el9.aarch64 (appstream)
Installing: mesa-libGL-23.3.0-1.el9.aarch64 (appstream)
Installing: libxkbfile-1.1.0-8.el9.aarch64 (appstream)
Installing: startup-notification-0.12-23.el9.aarch64 (appstream)
Installing: jbigkit-libs-2.1-23.el9.aarch64 (appstream)
Installing: libtiff-4.4.0-12.el9.aarch64 (appstream)
Installing: gdk-pixbuf2-modules-2.42.6-3.el9.aarch64 (appstream)
Installing: iio-sensor-proxy-3.3-1.el9.aarch64 (appstream)
Installing: ibus-libs-1.5.25-5.el9.aarch64 (appstream)
Installing: hunspell-filesystem-1.7.0-11.el9.aarch64 (appstream)
Installing: hunspell-en-US-0.20140811.1-20.el9.noarch (appstream)
Installing: hunspell-1.7.0-11.el9.aarch64 (appstream)
Installing: enchant2-2.2.15-6.el9.aarch64 (appstream)
Installing: hicolor-icon-theme-0.17-13.el9.noarch (appstream)
Installing: gvfs-client-1.48.1-4.el9.aarch64 (appstream)
Installing: gsm-1.0.19-6.el9.aarch64 (appstream)
Installing: libsndfile-1.0.31-8.el9.aarch64 (appstream)
Installing: pulseaudio-libs-15.0-2.el9.aarch64 (appstream)
Installing: libcanberra-0.30-27.el9.aarch64 (appstream)
Installing: pulseaudio-libs-glib2-15.0-2.el9.aarch64 (appstream)
Installing: giflib-5.2.1-9.el9.aarch64 (appstream)
Installing: flatpak-session-helper-1.12.8-1.el9.aarch64 (appstream)
Installing: fdk-aac-free-2.0.0-8.el9.aarch64 (appstream)
Installing: exempi-2.6.0-0.2.20211007gite23c213.el9.aarch64 (appstream)
Installing: emacs-filesystem-1:27.2-9.el9.noarch (appstream)
Installing: desktop-file-utils-0.26-6.el9.aarch64 (appstream)
Installing: gvfs-1.48.1-4.el9.aarch64 (appstream)
Installing: color-filesystem-1-28.el9.noarch (appstream)
Installing: colord-1.4.5-4.el9.aarch64 (appstream)
Installing: checkpolicy-3.6-1.el9.aarch64 (appstream)
Installing: adwaita-cursor-theme-40.1.1-3.el9.noarch (appstream)
Installing: adwaita-icon-theme-40.1.1-3.el9.noarch (appstream)
Installing: python3-setools-4.4.4-1.el9.aarch64 (baseos)
Installing: python3-distro-1.5.0-7.el9.noarch (baseos)
Installing: python3-policycoreutils-3.6-1.el9.noarch (appstream)
Installing: policycoreutils-python-utils-3.6-1.el9.noarch (appstream)
Installing: flatpak-selinux-1.12.8-1.el9.noarch (appstream)
Installing: graphite2-1.3.14-9.el9.aarch64 (baseos)
Installing: harfbuzz-2.7.4-10.el9.aarch64 (baseos)
Installing: freetype-2.10.4-9.el9.aarch64 (baseos)
Installing: fontconfig-2.14.0-2.el9.aarch64 (appstream)
Installing: cairo-1.17.4-7.el9.aarch64 (appstream)
Installing: cairo-gobject-1.17.4-7.el9.aarch64 (appstream)
Installing: libgxps-0.3.2-3.el9.aarch64 (appstream)
Installing: python3-cairo-1.20.1-1.el9.aarch64 (appstream)
Installing: python3-gobject-3.40.1-6.el9.aarch64 (appstream)
Installing: libpeas-loader-python3-1.30.0-4.el9.aarch64 (appstream)
Installing: libXft-2.3.3-8.el9.aarch64 (appstream)
Installing: pango-1.48.7-3.el9.aarch64 (appstream)
Installing: gstreamer1-plugins-base-1.22.1-2.el9.aarch64 (appstream)
Installing: librsvg2-2.50.7-3.el9.aarch64 (appstream)
Installing: poppler-21.01.0-19.el9.aarch64 (appstream)
Installing: poppler-glib-21.01.0-19.el9.aarch64 (appstream)
Installing: libtracker-sparql-3.1.2-3.el9.aarch64 (appstream)
Installing: tracker-3.1.2-3.el9.aarch64 (appstream)
Installing: tracker-miners-3.1.2-4.el9.aarch64 (appstream)
Installing: bluez-libs-5.56-6.el9.aarch64 (baseos)
Installing: pipewire-1.0.1-1.el9.aarch64 (appstream)
Created symlink /etc/systemd/user/sockets.target.wants/pipewire.socket → /usr/lib/systemd/user/pipewire.socket.
Installing: pipewire-libs-1.0.1-1.el9.aarch64 (appstream)
Installing: wireplumber-0.4.14-1.el9.aarch64 (appstream)
Installing: wireplumber-libs-0.4.14-1.el9.aarch64 (appstream)
Installing: flatpak-1.12.8-1.el9.aarch64 (appstream)
Installing: xdg-desktop-portal-1.12.6-1.el9.aarch64 (appstream)
Installing: libcanberra-gtk3-0.30-27.el9.aarch64 (appstream)
Installing: gtk3-3.24.31-2.el9.aarch64 (appstream)
Installing: xdg-desktop-portal-gtk-1.12.0-3.el9.aarch64 (appstream)
Installing: gnome-desktop3-40.4-1.el9.aarch64 (appstream)
Installing: zenity-3.32.0-8.el9.aarch64 (appstream)
Installing: gnome-session-40.1.1-9.el9.aarch64 (appstream)
Installing: gspell-1.9.1-3.el9.aarch64 (appstream)
Installing: gtksourceview4-4.8.1-5.el9.aarch64 (appstream)
Installing: libgweather-40.0-3.el9.aarch64 (appstream)
Installing: gnome-settings-daemon-40.0.1-16.el9.aarch64 (appstream)
Installing: mutter-40.9-15.el9.aarch64 (appstream)
Installing: gnome-kiosk-40.0-5.el9.aarch64 (appstream)
Installing: libpeas-gtk-1.30.0-4.el9.aarch64 (appstream)
Installing: gedit-2:40.0-6.el9.aarch64 (appstream)
Installing: pipewire-jack-audio-connection-kit-libs-1.0.1-1.el9.aarch64 (appstream)
Installing: pipewire-jack-audio-connection-kit-1.0.1-1.el9.aarch64 (appstream)
Installing: gnome-kiosk-script-session-40.0-5.el9.noarch (appstream)
Installing: pipewire-alsa-1.0.1-1.el9.aarch64 (appstream)
Installing: pipewire-pulseaudio-1.0.1-1.el9.aarch64 (appstream)
Created symlink /etc/systemd/user/sockets.target.wants/pipewire-pulse.socket → /usr/lib/systemd/user/pipewire-pulse.socket.
Created symlink /etc/systemd/user/pipewire-session-manager.service → /usr/lib/systemd/user/wireplumber.service.
Created symlink /etc/systemd/user/pipewire.service.wants/wireplumber.service → /usr/lib/systemd/user/wireplumber.service.
One thing I do note here is that bootc's self-install does work for this image:
$ truncate -s 10G ~/build/fedora-bootc.raw; podman run -ti --pull=newer --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /var/lib/containers:/var/lib/containers -v /var/home/walters/build:/output quay.io/cgwalters/ostest bootc install to-disk --via-loopback --skip-fetch-check --generic-image /output/fedora-bootc.raw
Gives me a functioning image.
But I don't yet understand what's going wrong with the osbuild bits here. I looked at the filesystem diff from that top layer and it seemed sane-ish (just a policy recompile).
$ truncate -s 10G ~/build/fedora-bootc.raw; podman run -ti --pull=newer --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /var/lib/containers:/var/lib/containers -v /var/home/walters/build:/output quay.io/cgwalters/ostest bootc install to-disk --via-loopback --skip-fetch-check --generic-image /output/fedora-bootc.raw
neat, this is a good way to test it out then for now - I can confirm that I can produce a working image from my kiosk demo using this method (although w/o anaconda, the default target I set in the Containerfile doesn't work but eh, at least it boots correctly)
@achilleas-k following https://github.com/osbuild/bootc-image-builder/issues/186 I've narrowed this issue down to just BIB as it just works with bootc self-install as reported above.
This is the minimal Containerfile that I've used (the built image is at quay.io/runcom/kiosk-base:selinux-error
):
FROM quay.io/centos-bootc/centos-bootc-dev:stream9
RUN rpm-ostree install gnome-kiosk-script-session && ostree container commit
Now, if I self install with bootc I get a working raw image and I'm able to boot it (converting to qcow2 first):
$ truncate -s 10G kiosk-base.raw; podman run -ti --pull=newer --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /var/lib/containers:/var/lib/containers -v $PWD:/output quay.io/runcom/kiosk-base:selinux-error bootc install to-disk --via-loopback --skip-fetch-check --generic-image /output/kiosk-base.raw
...
$ qemu-img convert -f raw -O qcow2 kiosk-base.raw kiosk-base.qcow2
$ qemu-system-aarch64 \
-M accel=hvf -device virtio-gpu-pci \
-cpu host \
-smp 2 \
-m 4096 \
-bios /opt/homebrew/Cellar/qemu/8.2.1/share/qemu/edk2-aarch64-code.fd \
-machine virt \
-snapshot kiosk-base.qcow2
If I instead use BIB, I get the selinux error:
$ cat config.json
{
"blueprint": {
"customizations": {
"user": [
{
"name": "runcom",
"password": "runcom",
"key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL7xFq1HtZKZiaD8MfkhNtn37m8GSc1W168NoSaT9RSf cardno:000F_C36A3FC0",
"groups": [
"wheel"
]
}
]
}
}
}
$ podman run \
--rm \
-it \
--privileged \
--pull=newer \
--security-opt label=type:unconfined_t \
-v $(pwd)/config.json:/config.json \
-v $(pwd)/output:/output \
quay.io/centos-bootc/bootc-image-builder:latest \
--type qcow2 \
--config /config.json \
quay.io/runcom/kiosk-base:selinux-error
...
⏱ Duration: 0s
org.osbuild.ostree.selinux: 28117cb9d06dbd7fe533c7c0bd00b4489b5a67e3d1b06afbde5b1f4531592252 {
"deployment": {
"osname": "default",
"ref": "ostree/1/1/0"
}
}
Traceback (most recent call last):
File "/run/osbuild/bin/org.osbuild.ostree.selinux", line 117, in <module>
r = main(stage_args["tree"],
File "/run/osbuild/bin/org.osbuild.ostree.selinux", line 102, in main
raise ValueError("Could not find SELinux policy")
ValueError: Could not find SELinux policy
⏱ Duration: 0s
Failed
Error: running osbuild failed: exit status 1
2024/02/15 08:19:21 error: running osbuild failed: exit status 1
I can definitely reproduce this but I'm still not entirely sure what's going on. The ostree.selinux stage should be trying to read /etc/selinux/config
or failing that /usr/etc/selinux/config
in the ostree commit to find the name of the policy. Looking at the actual stuff in the container, it looks like it should work but I'll see if I can reproduce step by step by hand (outside osbuild).
Building a derived image on osx with podman desktop and trying to create a qcow2 fails with selinux error in the pipeline. Here's the Containerfile used - note it doesn't matter if the non-dev version of the centos-bootc:stream9 container is used, it still fails.
if I just use bib to create a qcow2 from centos-bootc:stream9 or centos-bootc-dev:stream9 it works flawlessy instead
The error I always get is
here's the full pipelines log: