mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 15:06:29 +00:00
Fix time on overlay (#88)
* Fix time on overlay * Fix rights * Fix timesync
This commit is contained in:
parent
5526dbb2f7
commit
38c1df36c0
@ -1,5 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
##
|
||||||
|
# Hooks
|
||||||
|
|
||||||
# Handle boot hocks
|
# Handle boot hocks
|
||||||
if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
|
if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
|
||||||
if [ "${1}" = "slot-post-install" ]; then
|
if [ "${1}" = "slot-post-install" ]; then
|
||||||
@ -9,4 +12,12 @@ if [ "${RAUC_SLOT_CLASS}" = "boot" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
##
|
||||||
|
# Fixups
|
||||||
|
|
||||||
|
# timesyncd
|
||||||
|
if [ ! -d /var/lib/systemd/timesync ]; then
|
||||||
|
rm /var/lib/systemd/timesync
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -0,0 +1,2 @@
|
|||||||
|
[Unit]
|
||||||
|
RequiresMountsFor=/var/lib/systemd
|
@ -0,0 +1,2 @@
|
|||||||
|
[Service]
|
||||||
|
DynamicUser=no
|
Loading…
x
Reference in New Issue
Block a user