The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc-ci/pull/108

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
This ensures that /var/lock is always present, especially when running
distrobuilder pack-lx{c,d}.
Due to /var being a symlink to /tmp which in turn is a tmpfs, the
directory /var/lock will never be persistent.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From 805e9d4f2101deba022f29883ca4197856e08cb1 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Thu, 20 Feb 2020 11:37:09 +0100
Subject: [PATCH] images/openwrt: Ensure /var/lock

This ensures that /var/lock is always present, especially when running
distrobuilder pack-lx{c,d}.
Due to /var being a symlink to /tmp which in turn is a tmpfs, the
directory /var/lock will never be persistent.

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 images/openwrt.yaml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/images/openwrt.yaml b/images/openwrt.yaml
index 0ba5cb3..ca6814c 100644
--- a/images/openwrt.yaml
+++ b/images/openwrt.yaml
@@ -403,6 +403,20 @@ actions:
       mkdir -p /var/lock
       echo "console::askfirst:/usr/libexec/login.sh" >> /etc/inittab
 
+  - trigger: post-unpack
+    action: |
+      #!/bin/sh
+      mkdir -p /var/lock
+    types:
+     - container
+
+  - trigger: post-unpack
+    action: |
+      #!/bin/sh
+      mkdir -p /var/lock
+    types:
+     - vm
+
 packages:
   manager: opkg
   update: false
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to