mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
audit: do not remove file installed by netplug
The package recipe uses a post-install hook to remove useless files from $(TARGET_DIR)/etc/rc.d/init.d and $(TARGET_DIR)/etc/sysconfig. This may damage packages that install useful files on those directories (such as netplug, which installs $(TARGET_DIR)/etc/rc.d/init.d/netplugd). In the future[1] we will reorganize the init scripts and possibly get rid of /etc/rc.d and /etc/sysconfig but for the moment let's restrict the file removal to those installed by audit. 1. http://lists.busybox.net/pipermail/buildroot/2018-May/221549.html Signed-off-by: Carlos Santos <casantos@datacom.com.br> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
bd30292bd3
commit
49844baf2f
@ -51,8 +51,8 @@ define AUDIT_INSTALL_INIT_SYSTEMD
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define AUDIT_INSTALL_CLEANUP
|
define AUDIT_INSTALL_CLEANUP
|
||||||
$(RM) -rf $(TARGET_DIR)/etc/rc.d
|
$(RM) $(TARGET_DIR)/etc/rc.d/init.d/auditd
|
||||||
$(RM) -rf $(TARGET_DIR)/etc/sysconfig
|
$(RM) $(TARGET_DIR)/etc/sysconfig/auditd
|
||||||
endef
|
endef
|
||||||
AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP
|
AUDIT_POST_INSTALL_TARGET_HOOKS += AUDIT_INSTALL_CLEANUP
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user