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

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) ===

From 5dbe388652519a0ff234a586145c3bdf658aeefb Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Wed, 29 Jul 2020 17:21:10 +0200
Subject: [PATCH] images/voidlinux: Fix shutdown

This ensures that /etc/runit/stopit has the correct permissions in order
for a shutdown to be performed.

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

diff --git a/images/voidlinux.yaml b/images/voidlinux.yaml
index 00f8894..11bd174 100644
--- a/images/voidlinux.yaml
+++ b/images/voidlinux.yaml
@@ -134,5 +134,9 @@ actions:
         touch /etc/sv/agetty-tty${tty}/down
     done
 
+    # This ensures that the container performs a shutdown when receiving 
SIGCONT.
+    # Runit will only perform a shutdown if /etc/runit/stopit has mode 100, 
and /etc/runit/reboot has mode 0.
+    sed -ri 's#install -m000 /dev/null /run/runit/stopit#install -m100 
/dev/null /run/runit/stopit#' /etc/runit/1
+
 mappings:
   architecture_map: voidlinux
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to