[lxc-devel] [lxc/stable-2.0] [stable-2.0] debian template: don't set a root password

zorun on Github lxc-bot at linuxcontainers.org
Sun Feb 5 23:14:51 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 438 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170205/3410517d/attachment.bin>
-------------- next part --------------
From 1345b32cf1ca543a72e2de530d4de9c46f4ba83e Mon Sep 17 00:00:00 2001
From: Baptiste Jonglez <git at bitsofnetworks.org>
Date: Mon, 6 Feb 2017 00:09:18 +0100
Subject: [PATCH] debian template: don't set a root password

This is a backport of 515fb8d20c ("do not set the root password in the
debian template") from master.

See #302 and #1158 for details.

Signed-off-by: Baptiste Jonglez <git at bitsofnetworks.org>
---
 templates/lxc-debian.in | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in
index f752ccd..54ada05 100644
--- a/templates/lxc-debian.in
+++ b/templates/lxc-debian.in
@@ -158,9 +158,6 @@ EOF
         echo "Timezone in container is not configured. Adjust it manually."
     fi
 
-    echo "root:root" | chroot "$rootfs" chpasswd
-    echo "Root password is 'root', please change !"
-
     return 0
 }
 


More information about the lxc-devel mailing list