[lxc-devel] [distrobuilder/master] shared: Make debootstrap noninteractive

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Mar 7 16:43:19 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180307/23bba2dc/attachment.bin>
-------------- next part --------------
From e003b23773ad14247412ee133b39c417c3d7d0f0 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 7 Mar 2018 17:42:45 +0100
Subject: [PATCH] shared: Make debootstrap noninteractive

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 shared/util.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/shared/util.go b/shared/util.go
index 06fe875..20ed1e0 100644
--- a/shared/util.go
+++ b/shared/util.go
@@ -49,7 +49,9 @@ func RunCommand(name string, arg ...string) error {
 	cmd.Env = []string{
 		"PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin",
 		"SHELL=/bin/sh",
-		"TERM=xterm"}
+		"TERM=xterm",
+		"DEBIAN_FRONTEND=noninteractive",
+	}
 
 	cmd.Stdin = os.Stdin
 	cmd.Stdout = os.Stdout


More information about the lxc-devel mailing list