* [Buildroot] [PATCH] package/samba4: Change tmpfiles path
@ 2016-07-02 16:21 Maxime Hadjinlian
2016-07-02 16:50 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Maxime Hadjinlian @ 2016-07-02 16:21 UTC (permalink / raw)
To: buildroot
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/
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/samba4/samba4.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/samba4/samba4.mk b/package/samba4/samba4.mk
index 9f2bb0d..9ac72f5 100644
--- a/package/samba4/samba4.mk
+++ b/package/samba4/samba4.mk
@@ -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))
--
2.8.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] package/samba4: Change tmpfiles path
2016-07-02 16:21 [Buildroot] [PATCH] package/samba4: Change tmpfiles path Maxime Hadjinlian
@ 2016-07-02 16:50 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-02 16:50 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 2 Jul 2016 18:21:31 +0200, Maxime Hadjinlian wrote:
> 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/
>
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> package/samba4/samba4.mk | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-02 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-02 16:21 [Buildroot] [PATCH] package/samba4: Change tmpfiles path Maxime Hadjinlian
2016-07-02 16:50 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox