[oe-commits] [meta-openembedded] 22/35: samba: add volatile file to support readonly rootfs

git at git.openembedded.org git at git.openembedded.org
Tue Apr 19 10:15:36 UTC 2016


martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 8dcfea70137bacc5e351a6549620b96a4f3bba23
Author: Johannes Pointner <johannes.pointner at br-automation.com>
AuthorDate: Fri Apr 15 11:23:42 2016 +0200

    samba: add volatile file to support readonly rootfs
    
    This patch adds a volatile file for samba which was removed by the
    update from 3.6.25 to 4.1.12. This file is necessary to build a image
    that uses the read-only-rootfs feature.
    
    Signed-off-by: Johannes Pointner <johannes.pointner at br-automation.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 .../recipes-connectivity/samba/samba-4.1.12/volatiles.03_samba         | 3 +++
 meta-networking/recipes-connectivity/samba/samba_4.1.12.bb             | 1 +
 2 files changed, 4 insertions(+)

diff --git a/meta-networking/recipes-connectivity/samba/samba-4.1.12/volatiles.03_samba b/meta-networking/recipes-connectivity/samba/samba-4.1.12/volatiles.03_samba
new file mode 100644
index 0000000..4bdfa7d
--- /dev/null
+++ b/meta-networking/recipes-connectivity/samba/samba-4.1.12/volatiles.03_samba
@@ -0,0 +1,3 @@
+# <type> <owner> <group> <mode> <path> <linksource>
+d root root 0755 /var/log/samba none
+d root root 0755 /var/run/samba none
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb b/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb
index ff58dae..a0ede00 100644
--- a/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb
+++ b/meta-networking/recipes-connectivity/samba/samba_4.1.12.bb
@@ -146,6 +146,7 @@ do_install_append() {
     install -d ${D}${sysconfdir}/samba
     echo "127.0.0.1 localhost" > ${D}${sysconfdir}/samba/lmhosts
     install -m644 packaging/LSB/smb.conf ${D}${sysconfdir}/samba/smb.conf
+    install -D -m 644 ${WORKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/03_samba
 
     install -d ${D}${sysconfdir}/sysconfig/
     install -m644 packaging/systemd/samba.sysconfig ${D}${sysconfdir}/sysconfig/samba

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list