summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Pope <mpope.cr@gmail.com>2016-09-17 00:59:28 -0700
committerMartin Pitt <martin.pitt@ubuntu.com>2016-09-17 09:59:28 +0200
commit0b493a02631d08bd2f48db8bc618dcd1fe3bdcb3 (patch)
tree9f7aba9ec963f9e118bb8da0e2a37b743b5c7796 /src
parent9ea78383e8279ef41d96928d812ad8d4570d5147 (diff)
nspawn: clarify log warning for /etc/localtime not being a symbolic link (#4163)
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 6d0420965a..6f4a33cd96 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;
}