OS: Fix unmount of busy mounts (#319)

dhclient and systemd-journald will be running during shutdown and are
only killed in the final shutdown fase. Unmounting the directories
they use will fail. Use lazy unmouting to fix this.
This commit is contained in:
Jasper van der Neut - Stulen 2019-01-13 21:04:57 +01:00 committed by Pascal Vizeli
parent e858c774d2
commit 5835b6a683
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ What=/mnt/overlay/var/lib/NetworkManager
Where=/var/lib/NetworkManager Where=/var/lib/NetworkManager
Type=none Type=none
Options=bind Options=bind
LazyUnmount=yes
[Install] [Install]
WantedBy=hassos-bind.target WantedBy=hassos-bind.target

View File

@ -9,6 +9,7 @@ What=/mnt/overlay/var/log/journal
Where=/var/log/journal Where=/var/log/journal
Type=None Type=None
Options=bind Options=bind
LazyUnmount=yes
[Install] [Install]
WantedBy=hassos-bind.target WantedBy=hassos-bind.target