mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 10:00:56 +00:00
6c5e621bad
This bumps systemd to the latest stable maintenance release. - dc2e82af33 core: create per-user inaccessible node from the service manager - 0b3c497347 nspawn,pid1: pass "inaccessible" nodes from cntr mgr to pid1 payload via /run/host - 2239965c29 coredump: don't convert s → µs twice - 61d29b7f8c firstboot: fill empty color if ansi_color unavailable from os-release - 9678a3daf6 varlink: do not parse invalid messages twice - 4e516dcbc1 userdbctl: add forgotten --output mode in help - aee20dfbd8 shared/{user,group}-record-nss: adjust filtering of "valid" passwords - 5933d77afe doc: cross link sd_listen_fd() docs a bit - 97fdde3239 Rework how we cache mtime to figure out if units changed - 0500968241 core: always try to reload not-found unit - 8ae22f0d64 pid1: use the cache mtime not clock to "mark" load attempts - 715507c277 core: rename manager_unit_file_maybe_loadable_from_cache() - 20ad76d0a7 man: document fd ownership for sd-bus fd marshalling - 38ae73fafd resolved: make sure we initialize t->answer_errno before completing the transaction - a1ba0fbef6 homed: fix log message to honor real homework path - d6b1e659b3 src/shared/dissect-image.c: fix build without blkdid (#16901) - e42f9add21 analyze: fix error handling in one case - 4804ce1488 units: add missing usb-gadget.target - 5ad4e68c37 man: extend on the usec/sec discrepancy - 2fb612371d login/logind: Include sys/stat.h for struct stat usage - 5e884e7ee0 partition/makefs: Include missing sys/file.h header - 7bbc3807da network: dhcp6: logs only new address - 2056429e0f Don't run test-repart when loop devices are not available - dcbea51c5a man: clarify that several networkctl commands takes device names - 16e4cfcc82 networkctl: label command does not take any argument - 2352921244 missing: Add new Linux capability - 8b29c4a4f9 tty-ask-pw-agent: properly propagate error - f7ce2e9839 tty-ask-pw-agent: the message string might not be set - 29cba5c9ef tty-ask-pw-agent: make sure "--list" works correctly - e1ce367d73 add "list" verb to autocompleted commands - 1f4cb5da1e shell-completion/zsh: add missing verbs for networkctl - a4236a2764 path: Improve $PATH search directory case - b7cef386bd path: Skip directories when finalising $PATH search - 122945f315 rules: don't install 80-drivers.rules when kmod is disabled - 42fab2d454 zsh: correct journalctl command completion parsing - ed3f97f962 basic/missing_syscall: fix syscall numbers for arm64 :( - ba6e7f7c46 shared/install: fix preset operations for non-service instantiated units - d39f139348 nss-resolve: treat BUS_ERROR_NO_SUCH_UNIT the same as SD_BUS_ERROR_SERVICE_UNKNOWN too - 9bb3e64d71 various: treat BUS_ERROR_NO_SUCH_UNIT the same as SD_BUS_ERROR_SERVICE_UNKNOWN - 6d802dd596 man: drop reference to long gone .busname unit type - a29656804b man: fix a fix of a typo in systemd.service example - 21ce0f5b33 network: can: Fix CAN initialization - cab5cde8c9 man: update autogenerated dbus api lists - 0d8000522b man: fix invalid tag place - ea94f218be man: add conditionals to more man pages - ef91325349 meson: add ENABLE_ANALYZE conditional - 83f7c0a7ec core: add missing conditions/asserts to unit file parsing - 716718155d analyze: rework condition testing - 5c4c7581bc sd-bus: fix error handling on readv() - 6cd058f305 user-runtime-dir: deal gracefully with missing logind properties - 6a2d73638d shared/seccomp: do not use ifdef guards around textual syscall names - 7355ac9689 machine-id-setup: don't use KVM or container manager supplied uuid if in chroot env - 496a71f444 man: Fix typo in systemd-tmpfiles - 6c5d216ad8 homework: downgrade chattr failure log message - 1708f06a00 homework: explicitly close cryptsetup context, to not keep loopback device busy - a21eaa2a3a homework: correct error passed into log message - 3a2d169f36 homework: sync everything to disk before we rename LUKS loopback file into place - 84e1ab74d2 homed: downgrade quota message in containers - 8b62cadf36 analyze-security: do not assign badness to filtered-out syscalls - 29854a5437 NEWS: clarify two points - 4cb4fb82f7 meson: add min version for libfdisk - 76331f86f6 load-fragment: fix grammar in error messages - 1e53c2d70f Fix function description in logind man page - 669066564d network: do not fail if UseMTU=yes on DHCP lease lost - a2a3f16cdc missing_syscall: do not use function name that may conflict with glibc - 4091dcd469 missing_syscall: fix pidfd_{send_signal,open} numbers for alpha - 7875daf52b network: wait for previous address removal before configuring static addresses - 120064b4a1 network: only process non-error message - f44ec1de15 test: accept that char device 0/0 can now be created witout privileges - 946e4c43bb tools/make-man-index: fix purpose text that contains tags - dae0586e91 test-fs-util: skip encrypted path test if we get EACCES - 0d026c9b0d Newer Glibc use faccessat2 to implement faccessat - fde6520d46 namespace: fix minor memory leak - 208ba581f4 man: fix incorrectly placed full stop - 6c81d57828 man: fix typo - 53a8d2588e bless-boot: add missing verb to --help - 4cfa0ac4fd user-record: deal with invalid GECOS fields gracefully - ae5234ef48 user-util: add mangle_gecos() call for turning strings into fields suitable as GECOS fields - 972391ac39 fix typo in systemctl help - 443aacfcda man: clarify that LogNamespace= is for system services only - 5aec8fe54e _sd-common.h: avoid parsing errors with Coverity - f9ad4ea2ca analyze: fix 'cat-config systemd/zram-generator.conf' - dda6fec1df man: describe that changing Storage= does not move existing data - 2bbd33e476 core: reset bus error before reuse - b81504a3c7 nspawn: Fix incorrect usage of putenv - cb263973ac man: fix typo in systemd.service - 73b432e7ef network: fix DHCPv6 Prefix Delegation example after option rename
133 lines
5 KiB
Diff
133 lines
5 KiB
Diff
From a8ccba372d865429b578e72fd104a693b96101b3 Mon Sep 17 00:00:00 2001
|
|
From: Nikolay Amiantov <ab@fmap.me>
|
|
Date: Tue, 11 Oct 2016 13:12:08 +0300
|
|
Subject: [PATCH 09/18] Change /usr/share/zoneinfo to /etc/zoneinfo
|
|
|
|
NixOS uses this path.
|
|
---
|
|
man/localtime.xml | 4 ++--
|
|
src/basic/time-util.c | 6 +++---
|
|
src/firstboot/firstboot.c | 2 +-
|
|
src/nspawn/nspawn.c | 4 ++--
|
|
src/timedate/timedated.c | 8 ++++----
|
|
5 files changed, 12 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/man/localtime.xml b/man/localtime.xml
|
|
index 0f1652ee2e..71c4f95c2e 100644
|
|
--- a/man/localtime.xml
|
|
+++ b/man/localtime.xml
|
|
@@ -20,7 +20,7 @@
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv>
|
|
- <para><filename>/etc/localtime</filename> -> <filename>../usr/share/zoneinfo/…</filename></para>
|
|
+ <para><filename>/etc/localtime</filename> -> <filename>zoneinfo/…</filename></para>
|
|
</refsynopsisdiv>
|
|
|
|
<refsect1>
|
|
@@ -30,7 +30,7 @@
|
|
system-wide timezone of the local system that is used by
|
|
applications for presentation to the user. It should be an
|
|
absolute or relative symbolic link pointing to
|
|
- <filename>/usr/share/zoneinfo/</filename>, followed by a timezone
|
|
+ <filename>/etc/zoneinfo/</filename>, followed by a timezone
|
|
identifier such as <literal>Europe/Berlin</literal> or
|
|
<literal>Etc/UTC</literal>. The resulting link should lead to the
|
|
corresponding binary
|
|
diff --git a/src/basic/time-util.c b/src/basic/time-util.c
|
|
index 15cc1b8851..d0abde5933 100644
|
|
--- a/src/basic/time-util.c
|
|
+++ b/src/basic/time-util.c
|
|
@@ -1259,7 +1259,7 @@ int get_timezones(char ***ret) {
|
|
n_allocated = 2;
|
|
n_zones = 1;
|
|
|
|
- f = fopen("/usr/share/zoneinfo/zone1970.tab", "re");
|
|
+ f = fopen("/etc/zoneinfo/zone1970.tab", "re");
|
|
if (f) {
|
|
for (;;) {
|
|
_cleanup_free_ char *line = NULL;
|
|
@@ -1354,7 +1354,7 @@ bool timezone_is_valid(const char *name, int log_level) {
|
|
if (p - name >= PATH_MAX)
|
|
return false;
|
|
|
|
- t = strjoina("/usr/share/zoneinfo/", name);
|
|
+ t = strjoina("/etc/zoneinfo/", name);
|
|
|
|
fd = open(t, O_RDONLY|O_CLOEXEC);
|
|
if (fd < 0) {
|
|
@@ -1452,7 +1452,7 @@ int get_timezone(char **ret) {
|
|
if (r < 0)
|
|
return r; /* returns EINVAL if not a symlink */
|
|
|
|
- e = PATH_STARTSWITH_SET(t, "/usr/share/zoneinfo/", "../usr/share/zoneinfo/");
|
|
+ e = PATH_STARTSWITH_SET(t, "/etc/zoneinfo/", "../etc/zoneinfo/");
|
|
if (!e)
|
|
return -EINVAL;
|
|
|
|
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
|
|
index c9fc8dd5cd..44fc04dc88 100644
|
|
--- a/src/firstboot/firstboot.c
|
|
+++ b/src/firstboot/firstboot.c
|
|
@@ -460,7 +460,7 @@ static int process_timezone(void) {
|
|
if (isempty(arg_timezone))
|
|
return 0;
|
|
|
|
- e = strjoina("../usr/share/zoneinfo/", arg_timezone);
|
|
+ e = strjoina("zoneinfo/", arg_timezone);
|
|
|
|
(void) mkdir_parents(etc_localtime, 0755);
|
|
if (symlink(e, etc_localtime) < 0)
|
|
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
|
|
index 07f294c78a..cf86d1f494 100644
|
|
--- a/src/nspawn/nspawn.c
|
|
+++ b/src/nspawn/nspawn.c
|
|
@@ -1699,8 +1699,8 @@ static int userns_mkdir(const char *root, const char *path, mode_t mode, uid_t u
|
|
static const char *timezone_from_path(const char *path) {
|
|
return PATH_STARTSWITH_SET(
|
|
path,
|
|
- "../usr/share/zoneinfo/",
|
|
- "/usr/share/zoneinfo/");
|
|
+ "../etc/zoneinfo/",
|
|
+ "/etc/zoneinfo/");
|
|
}
|
|
|
|
static bool etc_writable(void) {
|
|
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
|
|
index 3e78b2f575..de5477a08f 100644
|
|
--- a/src/timedate/timedated.c
|
|
+++ b/src/timedate/timedated.c
|
|
@@ -269,7 +269,7 @@ static int context_read_data(Context *c) {
|
|
|
|
r = get_timezone(&t);
|
|
if (r == -EINVAL)
|
|
- log_warning_errno(r, "/etc/localtime should be a symbolic link to a time zone data file in /usr/share/zoneinfo/.");
|
|
+ log_warning_errno(r, "/etc/localtime should be a symbolic link to a time zone data file in /etc/zoneinfo/.");
|
|
else if (r < 0)
|
|
log_warning_errno(r, "Failed to get target of /etc/localtime: %m");
|
|
|
|
@@ -293,7 +293,7 @@ static int context_write_data_timezone(Context *c) {
|
|
|
|
if (isempty(c->zone) || streq(c->zone, "UTC")) {
|
|
|
|
- if (access("/usr/share/zoneinfo/UTC", F_OK) < 0) {
|
|
+ if (access("/etc/zoneinfo/UTC", F_OK) < 0) {
|
|
|
|
if (unlink("/etc/localtime") < 0 && errno != ENOENT)
|
|
return -errno;
|
|
@@ -301,9 +301,9 @@ static int context_write_data_timezone(Context *c) {
|
|
return 0;
|
|
}
|
|
|
|
- source = "../usr/share/zoneinfo/UTC";
|
|
+ source = "../etc/zoneinfo/UTC";
|
|
} else {
|
|
- p = path_join("../usr/share/zoneinfo", c->zone);
|
|
+ p = path_join("../etc/zoneinfo", c->zone);
|
|
if (!p)
|
|
return -ENOMEM;
|
|
|
|
--
|
|
2.28.0
|
|
|