building images in container fails due to selinux fixes

Bug #1779273 reported by Artem Goncharov on 2018-06-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Undecided
Unassigned

Bug Description

It is currently impossible to build rpm based image in the container, since rpm-distro/cleanup.d/99-selinux-fixfiles-restore tries to execute `runcon` on chroot which will not work in container, since selinux is disabled there:

(app-root) runcon -t setfiles_mac_t -- /opt
runcon: runcon may be used only on a SELinux kernel
(app-root) sestatus
SELinux status: disabled

`disk-image-create fedora-28 vm` fails because of that.

It is generally not very nice to create images in container, but I am trying to containerize Zuul, which uses diskimage-builer, so I face this problem

Artem Goncharov (gtema) wrote :

last release which works is 2.6.1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers