You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
|
|
SYSTEMD_MAIN_UNIT_NAMES := var-lib-virtiofs-data.mount
|
|
SYSTEMD_MAIN_UNIT_NAMES += rpm-ostree-install-qemu-guest-agent.service
|
|
SYSTEMD_MAIN_UNIT_NAMES += install-tools.service
|
|
# .path units are not picked up by common.mk's wildcard (only .service/.target/
|
|
# .timer/.mount), so install and enable/start it explicitly. It triggers the
|
|
# path-scoped podman-resolv-conf-sync.service oneshot.
|
|
SYSTEMD_MAIN_UNIT_NAMES += podman-resolv-conf-sync.path
|
|
|
|
TARGET_FILES += $(TARGET_CHROOT)/etc/quadlets/base/install-tools.d
|
|
TARGET_FILES += $(TARGET_CHROOT)/etc/systemd/system/podman-resolv-conf-sync.path
|
|
|
|
# Include common Makefile
|
|
include ../../scripts/common.mk
|
|
|
|
$(TARGET_CHROOT)/etc/quadlets/base/install-tools.d:
|
|
install -d -m 0755 -o root -g root -D $@
|
|
|
|
pre-requisites::
|
|
@set -Eeuo pipefail; \
|
|
for tool in rpm-ostree; do \
|
|
if ! which $$tool &>/dev/null ; then \
|
|
echo "$$tool is not installed. Please install it first." >&2; \
|
|
exit 1; \
|
|
fi ; \
|
|
done
|
|
|
|
install-actions-pre::
|
|
@set -Eeuo pipefail; \
|
|
run() { echo $$*; "$$@"; }; \
|
|
if ! getent group 10000 >/dev/null; then \
|
|
run groupadd -g 10000 itix-svc; \
|
|
fi ; \
|
|
if ! getent passwd 10000 >/dev/null; then \
|
|
run useradd -u 10000 -g 10000 -M -d /tmp -c "ITIX Misc. Services" itix-svc; \
|
|
fi
|
|
|