flatpak: add requested user

This fixes:
WARNING: gnome-image-1.0-r0 do_rootfs: User flatpak has never been defined

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk 2025-04-16 15:44:10 +02:00 committed by Khem Raj
parent 46394a2e5f
commit dfa01b1eca
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -12,7 +12,7 @@ SRCREV = "1440f4faa67ebf69c7559f31d2cab59e6ec6fe2b"
S = "${WORKDIR}/git"
inherit meson pkgconfig gettext systemd gtk-doc gobject-introspection python3native mime features_check
inherit meson pkgconfig gettext systemd gtk-doc gobject-introspection python3native mime features_check useradd
REQUIRED_DISTRO_FEATURES = "polkit"
@ -75,4 +75,7 @@ EXTRA_OEMESON = " \
-Dsystem_dbus_proxy=xdg-dbus-proxy \
"
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --no-create-home --user-group --shell /bin/nologin flatpak"
FILES:${PN} += "${libdir} ${datadir}"