1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

nspawn: clarify log warning for /etc/localtime not being a symbolic link (#4163)

This commit is contained in:
Michael Pope 2016-09-17 00:59:28 -07:00 committed by Martin Pitt
parent 9ea78383e8
commit 0b493a0263

View 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;
}