nspawn: clarify log warning for /etc/localtime not being a symbolic link (#4163)
authorMichael Pope <mpope.cr@gmail.com>
Sat, 17 Sep 2016 07:59:28 +0000 (00:59 -0700)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sat, 17 Sep 2016 07:59:28 +0000 (09:59 +0200)
src/nspawn/nspawn.c

index 6d04209..6f4a33c 100644 (file)
@@ -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;
         }