Skip to contentSkip to conversation

hiawatha: remove empty /var/run directory

PATCH In review Jonathan Liu 2 participants 2 messages Jul 8, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hiawatha: remove empty /var/run directory

The /var/run directory is already created by base-files.

---
 meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb +2 -0
index 2c9fe80..94bcbc6 100644
@@ -53,6 +53,8 @@ do_install_append() {
         install -m 644 ${WORKDIR}/hiawatha.service ${D}/${systemd_unitdir}/system
     fi
 
+    rmdir "${D}${localstatedir}/run"
+    rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
 }
 
 CONFFILES_${PN} = " \
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 13 lines · Jonathan Liu

The /var/run directory is already created by base-files.

---
  meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb | 2 ++
  1 file changed, 2 insertions(+)
meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb +0 -0
index 2c9fe80..94bcbc6 100644

meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb do_install_append() { · line 60

Quoted 8 lines
meta-webserver/recipes-httpd/hiawatha/hiawatha_9.2.bb +2 -0
@@ -53,6 +53,8 @@ do_install_append() {
          install -m 644 ${WORKDIR}/hiawatha.service ${D}/${systemd_unitdir}/system
      fi
 
+    rmdir "${D}${localstatedir}/run"
+    rmdir --ignore-fail-on-non-empty "${D}${localstatedir}"
  }
 
  CONFFILES_${PN} = " \

Ack from me, I've been meaning to get round to this for a while.

Thanks Jonathan!

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--