[lxc-devel] [lxc/master] templates: remove creation of bogus directory in Debian templates

mabes on Github lxc-bot at linuxcontainers.org
Thu Sep 1 14:44:29 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 568 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160901/44a158e1/attachment.bin>
-------------- next part --------------
From c45df3b8dbfcf9bca0c5c4c85550bcd4c81fc8bc Mon Sep 17 00:00:00 2001
From: Maxime BESSON <maxime.besson at smile.fr>
Date: Thu, 1 Sep 2016 16:09:37 +0200
Subject: [PATCH] templates: remove creation of bogus directory

An incorrect quoting introduced in bf39edb caused a /{lib,etc} folder to
appear in Debian templates

The very next line :
    mkdir -p "${rootfs}/etc/systemd/system/getty.target.wants

makes creating ${rootfs}/etc/systemd/system/ unnecessary in the first
place

Signed-off-by: Maxime Besson <maxime.besson at smile.fr>
---
 templates/lxc-debian.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index e5ad10d..6420b39 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -239,7 +239,7 @@ configure_debian_systemd()
     fi
 
     # just in case systemd is not installed
-    mkdir -p "${rootfs}/{lib,etc}/systemd/system"
+    mkdir -p "${rootfs}/lib/systemd/system"
     mkdir -p "${rootfs}/etc/systemd/system/getty.target.wants"
 
     # Fix getty-static-service as debootstrap does not install dbus


More information about the lxc-devel mailing list