package/openssh: Add tmpfiles.d snippet to make /var/empty
PATCH 1/1 package/openssh: Add tmpfiles.d snippet to make /var/empty
This is useful in volatile or stateless systems in which /var is empty.
Signed-off-by Chris Lesiak <[email protected]>
--- package/openssh/openssh.mk | 2 ++ package/openssh/ssh_tmpfiles.conf | 1 + 2 files changed, 3 insertions(+) create mode 100644 package/openssh/ssh_tmpfiles.conf
package/openssh/openssh.mk +2 -0
@@ -73,6 +73,8 @@ define OPENSSH_INSTALL_INIT_SYSTEMD mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -fs ../../../../usr/lib/systemd/system/sshd.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/sshd.service + $(INSTALL) -m 0644 -D package/openssh/ssh_tmpfiles.conf \ + $(TARGET_DIR)/usr/lib/tmpfiles.d/ssh.conf $(OPENSSH_INSTALL_SYSTEMD_SYSUSERS) endef
package/openssh/ssh_tmpfiles.conf new file +1 -0
@@ -0,0 +1 @@ +d /var/empty 0711 root root
Signature · 1 line
2.13.6
PATCH 1/1 package/openssh: Add tmpfiles.d snippet to make /var/empty
Chris, all,
Quoted 28 lines · Chris Lesiak
This is useful in volatile or stateless systems in which /var is empty.
Signed-off-by Chris Lesiak <[email protected]>--- package/openssh/openssh.mk | 2 ++ package/openssh/ssh_tmpfiles.conf | 1 + 2 files changed, 3 insertions(+) create mode 100644 package/openssh/ssh_tmpfiles.confpackage/openssh/openssh.mk +2
-0@@ -73,6 +73,8 @@ define OPENSSH_INSTALL_INIT_SYSTEMD mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -fs ../../../../usr/lib/systemd/system/sshd.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/sshd.service + $(INSTALL) -m 0644 -D package/openssh/ssh_tmpfiles.conf \ + $(TARGET_DIR)/usr/lib/tmpfiles.d/ssh.conf $(OPENSSH_INSTALL_SYSTEMD_SYSUSERS) endefpackage/openssh/ssh_tmpfiles.conf new file +0
-0
package/openssh/ssh_tmpfiles.conf line 1
Quoted 1 line
package/openssh/ssh_tmpfiles.conf new file +1
-0@@ -0,0 +1 @@ +d /var/empty 0711 root root
Any specific reason to set permissions to 0711 instead of 0755 (like many distros do)?
Regards,
Signature · 1 line
Samuel
PATCH 1/1 package/openssh: Add tmpfiles.d snippet to make /var/empty
In reply to Chris LesiakQuoted 1 line · Chris Lesiak
This is useful in volatile or stateless systems in which /var is empty.
This explanation is insufficient for me. Why is it a problem for openssh if
/var is empty?
Regards,
Arnout
Quoted 28 lines
Signed-off-by Chris Lesiak <[email protected]>--- package/openssh/openssh.mk | 2 ++ package/openssh/ssh_tmpfiles.conf | 1 + 2 files changed, 3 insertions(+) create mode 100644 package/openssh/ssh_tmpfiles.confpackage/openssh/openssh.mk +2
-0@@ -73,6 +73,8 @@ define OPENSSH_INSTALL_INIT_SYSTEMD mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -fs ../../../../usr/lib/systemd/system/sshd.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/sshd.service + $(INSTALL) -m 0644 -D package/openssh/ssh_tmpfiles.conf \ + $(TARGET_DIR)/usr/lib/tmpfiles.d/ssh.conf $(OPENSSH_INSTALL_SYSTEMD_SYSUSERS) endefpackage/openssh/ssh_tmpfiles.conf new file +1
-0@@ -0,0 +1 @@ +d /var/empty 0711 root root
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF