Skip to contentSkip to conversation

package/samba4: Change tmpfiles path

PATCH New Maxime Hadjinlian 2 participants 2 messages Jul 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/samba4: Change tmpfiles path

Per the documentation:
https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

The order of path by priorites is:
/etc/tmpfiles.d/*.conf
/run/tmpfiles.d/*.conf
/usr/lib/tmpfiles.d/*.conf

For the user to be able to override our tmpfiles easily, it's better to place our files in /usr/lib/tmpfiles.d/

---
 package/samba4/samba4.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/samba4/samba4.mk +2 -2
index 9f2bb0d..9ac72f5 100644
@@ -156,8 +156,8 @@ define SAMBA4_INSTALL_INIT_SYSTEMD
 	ln -sf ../../../../usr/lib/systemd/system/winbind.service \
 		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/winbind.service
 	$(INSTALL) -D -m 644 $(@D)/packaging/systemd/samba.conf.tmp \
-		$(TARGET_DIR)/etc/tmpfiles.d/samba.conf
-	printf "d /var/log/samba  755 root root\n" >>$(TARGET_DIR)/etc/tmpfiles.d/samba.conf
+		$(TARGET_DIR)/usr/lib/tmpfiles.d/samba.conf
+	printf "d /var/log/samba  755 root root\n" >>$(TARGET_DIR)/usr/lib/tmpfiles.d/samba.conf
 endef
 
 $(eval $(generic-package))
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 package/samba4: Change tmpfiles path

Hello,

Quoted 8 lines · Maxime Hadjinlian

Per the documentation:
https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html

The order of path by priorites is:
/etc/tmpfiles.d/*.conf
/run/tmpfiles.d/*.conf
/usr/lib/tmpfiles.d/*.conf

Quoted 8 lines

For the user to be able to override our tmpfiles easily, it's better to place our files in /usr/lib/tmpfiles.d/

---
 package/samba4/samba4.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com