mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
systemd: ensure tmpfiles.d/legacy.conf is installed
Systemd doesn't install tmpfiles.d/legacy.conf when sysv compatiblity isn't enabled. This config sets up /var/lock, which many programs such as uboot's fw_printenv/setenv still depend on by default. Signed-off-by: Joseph Kogut <joseph.kogut@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
efc07b7a18
commit
0e71f51119
@@ -563,9 +563,17 @@ define SYSTEMD_INSTALL_MACHINEID_HOOK
|
|||||||
touch $(TARGET_DIR)/etc/machine-id
|
touch $(TARGET_DIR)/etc/machine-id
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# systemd doesn't install legacy.conf without sysv-compat
|
||||||
|
# This config ensures /var/lock is created
|
||||||
|
define SYSTEMD_INSTALL_LEGACY_CONF_HOOK
|
||||||
|
$(INSTALL) -D -m 0644 $(@D)/tmpfiles.d/legacy.conf \
|
||||||
|
$(TARGET_DIR)/usr/lib/tmpfiles.d
|
||||||
|
endef
|
||||||
|
|
||||||
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
||||||
SYSTEMD_INSTALL_INIT_HOOK \
|
SYSTEMD_INSTALL_INIT_HOOK \
|
||||||
SYSTEMD_INSTALL_MACHINEID_HOOK
|
SYSTEMD_INSTALL_MACHINEID_HOOK \
|
||||||
|
SYSTEMD_INSTALL_LEGACY_CONF_HOOK
|
||||||
|
|
||||||
define SYSTEMD_INSTALL_IMAGES_CMDS
|
define SYSTEMD_INSTALL_IMAGES_CMDS
|
||||||
$(SYSTEMD_INSTALL_BOOT_FILES)
|
$(SYSTEMD_INSTALL_BOOT_FILES)
|
||||||
|
|||||||
Reference in New Issue
Block a user