mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-27 23:16:31 +00:00
Migrate from LABEL= to /dev/disk/by-label/* (#318)
This commit is contained in:
parent
73a875c263
commit
43828c2555
@ -0,0 +1 @@
|
||||
/usr/lib/systemd/system/hassos-user-rules-udev-trigger.service
|
@ -2,7 +2,7 @@
|
||||
Description=Udev persistent rules.d
|
||||
Requires=mnt-overlay.mount
|
||||
After=mnt-overlay.mount
|
||||
Before=systemd-udevd.service hassos-config.service
|
||||
Before=hassos-config.service
|
||||
|
||||
[Mount]
|
||||
What=/mnt/overlay/etc/udev/rules.d
|
||||
|
@ -4,6 +4,8 @@ DefaultDependencies=no
|
||||
Before=mnt-data.mount
|
||||
RefuseManualStart=true
|
||||
RefuseManualStop=true
|
||||
Requires=dev-disk-by\x2dlabel-hassos\x2ddata.device
|
||||
After=dev-disk-by\x2dlabel-hassos\x2ddata.device
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Retrigger udev rules after user rules mounted
|
||||
DefaultDependencies=no
|
||||
Wants=systemd-udevd.service etc-udev-rules.d.mount
|
||||
After=systemd-udev-trigger.service etc-udev-rules.d.mount
|
||||
Before=hassos-bind.target
|
||||
ConditionPathIsReadWrite=/sys
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/udevadm control --reload-rules
|
||||
ExecStart=/usr/bin/udevadm trigger --type=subsystems --action=add
|
||||
ExecStart=/usr/bin/udevadm trigger --type=devices --action=add
|
||||
|
||||
[Install]
|
||||
WantedBy=hassos-bind.target
|
@ -6,7 +6,7 @@ After=local-fs.target
|
||||
Conflicts=umount.target
|
||||
|
||||
[Mount]
|
||||
What=LABEL=hassos-boot
|
||||
What=/dev/disk/by-label/hassos-boot
|
||||
Where=/mnt/boot
|
||||
Type=auto
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
Description=HassOS config partition
|
||||
|
||||
[Mount]
|
||||
What=LABEL=CONFIG
|
||||
What=/dev/disk/by-label/CONFIG
|
||||
Where=/mnt/config
|
||||
Type=auto
|
||||
Options=ro
|
||||
|
@ -7,7 +7,7 @@ Before=umount.target systemd-tmpfiles-setup.service
|
||||
Conflicts=umount.target
|
||||
|
||||
[Mount]
|
||||
What=LABEL=hassos-data
|
||||
What=/dev/disk/by-label/hassos-data
|
||||
Where=/mnt/data
|
||||
Type=ext4
|
||||
|
||||
|
@ -5,7 +5,7 @@ Before=umount.target systemd-tmpfiles-setup.service
|
||||
Conflicts=umount.target
|
||||
|
||||
[Mount]
|
||||
What=LABEL=hassos-overlay
|
||||
What=/dev/disk/by-label/hassos-overlay
|
||||
Where=/mnt/overlay
|
||||
Type=ext4
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user