Add fix systemd

This commit is contained in:
Pascal Vizeli
2018-03-31 00:19:26 +02:00
parent 663a88e15e
commit 4f90c7513c
15 changed files with 107 additions and 100 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=NetworkManager system connections
Requires=mnt-overlay.mount
After=mnt-overlay.mount
Before=NetworkManager.service
[Mount]
What=/mnt/overlay/etc/NetworkManager/system-connections
Where=/etc/NetworkManager/system-connections
Type=None
Options=bind
[Install]
WantedBy=hassio-bind.target

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Dropbear Host Key
Requires=mnt-overlay.mount
After=mnt-overlay.mount
Before=dropbear.service
[Mount]
What=/mnt/overlay/etc/dropbear
Where=/etc/dropbear
Type=none
Options=bind
[Install]
WantedBy=hassio-bind.target

View File

@@ -0,0 +1,3 @@
[Unit]
Description=Hassio overlay targets
Documentation=man:systemd.target(5)

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Hassio boot partition
DefaultDependencies=no
Before=umount.target
After=local-fs.target
Conflicts=umount.target
[Mount]
What=LABEL=hassio-boot
Where=/mnt/boot
Type=auto
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,13 @@
[Unit]
Description=Hassio data partition
DefaultDependencies=no
Before=umount.target
Conflicts=umount.target
[Mount]
What=LABEL=hassio-data
Where=/mnt/data
Type=ext4
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,13 @@
[Unit]
Description=Hassio overlay partition
DefaultDependencies=no
Before=umount.target
Conflicts=umount.target
[Mount]
What=LABEL=hassio-overlay
Where=/mnt/overlay
Type=ext4
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Systemd persistent state
DefaultDependencies=no
Requires=mnt-overlay.mount
After=mnt-overlay.mount
Before=umount.target
Conflicts=umount.target
[Mount]
What=/mnt/overlay/var/lib/systemd
Where=/var/lib/systemd
Type=None
Options=bind
[Install]
WantedBy=hassio-bind.target

View File

@@ -0,0 +1,16 @@
[Unit]
Description=Systemd persistent logging
DefaultDependencies=no
Requires=mnt-overlay.mount systemd-tmpfiles-setup.service
After=mnt-overlay.mount systemd-tmpfiles-setup.service
Before=umount.target
Conflicts=umount.target
[Mount]
What=/mnt/overlay/var/log/journal
Where=/var/log/journal
Type=None
Options=bind
[Install]
WantedBy=hassio-bind.target