From: Michael Pope Date: Sat, 17 Sep 2016 07:59:28 +0000 (-0700) Subject: nspawn: clarify log warning for /etc/localtime not being a symbolic link (#4163) X-Git-Tag: v232~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b493a02631d08bd2f48db8bc618dcd1fe3bdcb3;p=thirdparty%2Fsystemd.git nspawn: clarify log warning for /etc/localtime not being a symbolic link (#4163) --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 6d0420965ab..6f4a33cd969 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1219,7 +1219,13 @@ static int setup_timezone(const char *dest) { /* Fix the timezone, if possible */ r = readlink_malloc("/etc/localtime", &p); if (r < 0) { - log_warning("/etc/localtime is not a symlink, not updating container timezone."); + log_warning("host's /etc/localtime is not a symlink, not updating container timezone."); + /* to handle warning, delete /etc/localtime and replace it + * it /w a symbolic link to a time zone data file. + * + * Example: + * ln -s /etc/localtime /usr/share/zoneinfo/UTC + */ return 0; }