[lxc-devel] [lxc/master] confile: improve legacy update message

brauner on Github lxc-bot at linuxcontainers.org
Wed Nov 22 22:26:58 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 381 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171122/70f7a70f/attachment.bin>
-------------- next part --------------
From ece913fe14253c24d219ccdd1aaaa9979e3b5540 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 22 Nov 2017 23:24:40 +0100
Subject: [PATCH] confile: improve legacy update message

Closes #1938.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/confile.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lxc/confile.c b/src/lxc/confile.c
index bff51f6d7..17f48762c 100644
--- a/src/lxc/confile.c
+++ b/src/lxc/confile.c
@@ -2115,7 +2115,10 @@ static int parse_line(char *buffer, void *data)
 			 */
 			fprintf(stderr, "The configuration file contains "
 					"legacy configuration keys.\nPlease "
-					"update your configuration file!\n");
+					"update your configuration file!\nThe "
+					"update script lxc-update-config -c "
+					"<path-to-config> can be used for "
+					"this.\n");
 		}
 	}
 	/* [END]: REMOVE IN LXC 3.0 */


More information about the lxc-devel mailing list