Fix time on overlay (#88)

* Fix time on overlay

* Fix rights

* Fix timesync
This commit is contained in:
Pascal Vizeli 2018-07-08 00:43:46 +02:00 committed by GitHub
parent 5526dbb2f7
commit 38c1df36c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh
##
# Hooks
# Handle boot hocks
if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
if [ "${1}" = "slot-post-install" ]; then
@ -9,4 +12,12 @@ if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
fi
fi
##
# Fixups
# timesyncd
if [ ! -d /var/lib/systemd/timesync ]; then
rm /var/lib/systemd/timesync
fi
exit 0

View File

@ -0,0 +1,2 @@
[Unit]
RequiresMountsFor=/var/lib/systemd

View File

@ -0,0 +1,2 @@
[Service]
DynamicUser=no