From 12e31ce9d6065086fa0a84733f7b45664d41b7e9 Mon Sep 17 00:00:00 2001 From: Johannes Pointner Date: Fri, 15 Apr 2016 11:23:42 +0200 Subject: 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 Signed-off-by: Martin Jansa Signed-off-by: Joe MacDonald --- .../recipes-connectivity/samba/samba-4.4.2/volatiles.03_samba | 3 +++ meta-networking/recipes-connectivity/samba/samba_4.4.2.bb | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 meta-networking/recipes-connectivity/samba/samba-4.4.2/volatiles.03_samba (limited to 'meta-networking/recipes-connectivity') diff --git a/meta-networking/recipes-connectivity/samba/samba-4.4.2/volatiles.03_samba b/meta-networking/recipes-connectivity/samba/samba-4.4.2/volatiles.03_samba new file mode 100644 index 000000000..4bdfa7d2c --- /dev/null +++ b/meta-networking/recipes-connectivity/samba/samba-4.4.2/volatiles.03_samba @@ -0,0 +1,3 @@ +# +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.4.2.bb b/meta-networking/recipes-connectivity/samba/samba_4.4.2.bb index d10a1dc36..9358ca5eb 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.4.2.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.4.2.bb @@ -17,6 +17,7 @@ SRC_URI = "${SAMBA_MIRROR}/stable/samba-${PV}.tar.gz \ file://20-do-not-import-target-module-while-cross-compile.patch \ file://21-add-config-option-without-valgrind.patch \ file://0006-avoid-using-colon-in-the-checking-msg.patch \ + file://volatiles.03_samba \ " SRC_URI[md5sum] = "03a65a3adf08ceb1636ad59d234d7f9d" @@ -109,6 +110,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 -- cgit v1.2.3-54-g00ecf