mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-15 11:53:53 -09:00
Commited12e2fbed(package/libvirt: add lxc and qemu options) introduced the definition of the 'qemu' user when the libvirt daemon is enabled, but unconditionally uses that user in its permissions table. When enabling libvirt without its qemu support, for example with the commands: cat <<EOF >.config BR2_aarch64=y BR2_PACKAGE_LIBVIRT=y BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y BR2_TARGET_ROOTFS_EXT2=y BR2_TOOLCHAIN_EXTERNAL=y EOF make olddefconfig make The build fails with output: >>> Generating filesystem image rootfs.ext2 ... makedevs: unknown user name: qemu Move the permissions needing the 'qemu' user under the same condition the 'qemu' user is defined under. It means that a few permissions needing root must also be moved, as they belong under a directory needing the 'qemu' user. It also moves a few qemu-related permissions introduced in that same commit. The list of qemu permissions is reordered alphabetically (the others are left unchanged). Of course, it also requires that the qemu-related directory and symlink be moved under the same condition as well. Reported-by: Alessandro <alex@0x65c.net> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Jared Bents <jared.bents@rockwellcollins.com> [Julien: add the commands to reproduce the issue] Signed-off-by: Julien Olivain <ju.o@free.fr> (cherry picked from commitda9adec149) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>