From 0fa5bc660474e06db54bad3670e9ab2b000c415a Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Mon, 8 Jan 2018 13:48:56 +0000 Subject: [PATCH] systemd: persist persistent timer stamps --- ...0200-persist-persistent-timer-stamps.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 packages/sysutils/systemd/patches/systemd-0200-persist-persistent-timer-stamps.patch diff --git a/packages/sysutils/systemd/patches/systemd-0200-persist-persistent-timer-stamps.patch b/packages/sysutils/systemd/patches/systemd-0200-persist-persistent-timer-stamps.patch new file mode 100644 index 0000000000..460157843e --- /dev/null +++ b/packages/sysutils/systemd/patches/systemd-0200-persist-persistent-timer-stamps.patch @@ -0,0 +1,30 @@ +From c1bcb16c35724404d30fab53017b757c886e9ab7 Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Mon, 8 Jan 2018 13:46:51 +0000 +Subject: [PATCH] timers: use a persistent filesystem for persistent timers + +--- + src/core/timer.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/core/timer.c b/src/core/timer.c +index 03935ee..bfd5c02 100644 +--- a/src/core/timer.c ++++ b/src/core/timer.c +@@ -154,11 +154,11 @@ static int timer_setup_persistent(Timer *t) { + + if (MANAGER_IS_SYSTEM(UNIT(t)->manager)) { + +- r = unit_require_mounts_for(UNIT(t), "/var/lib/systemd/timers", UNIT_DEPENDENCY_FILE); ++ r = unit_require_mounts_for(UNIT(t), "/storage/.cache/systemd/timers", UNIT_DEPENDENCY_FILE); + if (r < 0) + return r; + +- t->stamp_path = strappend("/var/lib/systemd/timers/stamp-", UNIT(t)->id); ++ t->stamp_path = strappend("/storage/.cache/systemd/timers/stamp-", UNIT(t)->id); + } else { + const char *e; + +-- +2.14.1 +