Message ID | 20250619213948.706294-1-chaitanya.vadrevu@emerson.com |
---|---|
State | New |
Headers | show |
Series | [meta-networking] samba: Run populate-volatile.sh update in postinst | expand |
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb b/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb index 0ec0051c43..0213d131e5 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.19.8.bb @@ -354,4 +354,10 @@ RDEPENDS:${PN}-test = "\ ${PN}-testsuite \ " +pkg_postinst:${PN}-common() { + if [ -z "$D" ] && [ -e ${sysconfdir}/init.d/populate-volatile.sh ]; then + ${sysconfdir}/init.d/populate-volatile.sh update + fi +} + ALLOW_EMPTY:${PN}-test = "1"
samba-common installs a volatiles configuration file but had not been calling populate-volatile.sh to apply the configuration. This causes samba installation to fail on a running target due to missing directories. Call "populate-volatile.sh update" in samba-common's postinst which creates the required directories and enables samba to work. Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com> --- meta-networking/recipes-connectivity/samba/samba_4.19.8.bb | 6 ++++++ 1 file changed, 6 insertions(+)