canonical / core18

The core18 base snap
14 stars 26 forks source link

Fix core to work with systemd dynamic users (fixes systemd-timesyncd) #6

Closed sil2100 closed 6 years ago

sil2100 commented 6 years ago

Starting with systemd 236-1, systemd-timesyncd switched from a static user to DynamicUser=yes for its service. This requires the /var/lib/private/systemd directory existing and /var/lib/systemd to be writable for dynamic creation of symlinks for dynamic users.

sil2100 commented 6 years ago

Note for testers: when testing on an existing core image upgraded to core18 through snap install, after rebooting most probably a manual step of removing the unused /var/lib/systemd/timesync is required. The directory is a leftover with which systemd is unable to create the timesync symlink and start the dynamic user. It won't be around on a clean install.

mvo5 commented 6 years ago

Yay! Thank you