mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-09 17:03:35 -09:00
package/swupdate: prevent systemd from removing swupdate tmp folders
Ensure these folders are excluded from being cleaned up by systemd. Fixes: [ERROR] : SWUPDATE failed [0] ERROR : I cannot open /tmp/scripts/format.lua 2 [ERROR] : SWUPDATE failed [0] ERROR : extracting script to /tmp/scripts/ failed [ERROR] : SWUPDATE failed [1] Installation failed ! Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
25b0645aa4
commit
daa46718e0
@@ -248,6 +248,8 @@ define SWUPDATE_INSTALL_INIT_SYSTEMD
|
||||
$(SWUPDATE_INSTALL_COMMON)
|
||||
$(INSTALL) -D -m 644 package/swupdate/swupdate.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/swupdate.service
|
||||
$(INSTALL) -D -m 644 package/swupdate/tmpfiles-swupdate.conf \
|
||||
$(TARGET_DIR)/usr/lib/tmpfiles.d/tmpfiles-swupdate.conf
|
||||
endef
|
||||
define SWUPDATE_INSTALL_INIT_SYSV
|
||||
$(SWUPDATE_INSTALL_COMMON)
|
||||
|
||||
2
package/swupdate/tmpfiles-swupdate.conf
Normal file
2
package/swupdate/tmpfiles-swupdate.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
X /tmp/datadst
|
||||
X /tmp/scripts
|
||||
Reference in New Issue
Block a user