Commit e670bb3d authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

systemd-timesyncd should not start before system is online

parent fb6d823e
...@@ -3,6 +3,7 @@ all: systemd-user-sessions network-config ...@@ -3,6 +3,7 @@ all: systemd-user-sessions network-config
tar xf systemd-245.tar.gz tar xf systemd-245.tar.gz
patch -Np1 -d systemd-245 < systemd-245-return_the_correct_wd_from_inotify_helpers.patch patch -Np1 -d systemd-245 < systemd-245-return_the_correct_wd_from_inotify_helpers.patch
patch -Np1 -d systemd-245 < systemd-245-gcc_10-fixes-2.patch patch -Np1 -d systemd-245 < systemd-245-gcc_10-fixes-2.patch
patch -Np1 -d systemd-245 < systemd-245-fix_timesyncd.patch
ln -s /tools/bin/true /usr/bin/xsltproc ln -s /tools/bin/true /usr/bin/xsltproc
cd systemd-245 && tar xf ../systemd-man-pages-245.tar.xz cd systemd-245 && tar xf ../systemd-man-pages-245.tar.xz
cd systemd-245 && sed -i 's/GROUP="render", //' rules.d/50-udev-default.rules.in cd systemd-245 && sed -i 's/GROUP="render", //' rules.d/50-udev-default.rules.in
......
diff -uNr systemd-245/units/systemd-timesyncd.service.in systemd-245-fix_timesyncd/units/systemd-timesyncd.service.in
--- systemd-245/units/systemd-timesyncd.service.in 2020-03-06 23:08:52.000000000 +1030
+++ systemd-245-fix_timesyncd/units/systemd-timesyncd.service.in 2022-02-02 19:18:56.587448597 +1030
@@ -13,7 +13,7 @@
ConditionCapability=CAP_SYS_TIME
ConditionVirtualization=!container
DefaultDependencies=no
-After=systemd-remount-fs.service systemd-sysusers.service
+After=systemd-remount-fs.service systemd-sysusers.service systemd-networkd-wait-online.service
Before=time-set.target sysinit.target shutdown.target
Conflicts=shutdown.target
Wants=time-set.target time-sync.target
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment