gh-82: Replace dependency on dev-disk-by\x2dlabel-CONTEXT.device

Closes #82
pull/100/head
Vlastimil Holer 7 years ago
parent cce2d05950
commit 0312b8ade2
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -2,8 +2,8 @@
Description=OpenNebula pre-networking contextualization script Description=OpenNebula pre-networking contextualization script
DefaultDependencies=no DefaultDependencies=no
Before=network-pre.target Before=network-pre.target
Wants=network-pre.target local-fs.target dev-disk-by\x2dlabel-CONTEXT.device Wants=network-pre.target local-fs.target systemd-udev-settle.service syslog.target
After=local-fs.target dev-disk-by\x2dlabel-CONTEXT.device After=local-fs.target systemd-udev-settle.service syslog.target
ConditionPathExists=!/var/run/one-context/context.sh.local ConditionPathExists=!/var/run/one-context/context.sh.local
[Service] [Service]

@ -1,8 +1,8 @@
[Unit] [Unit]
Description=OpenNebula pre-networking contextualization script Description=OpenNebula pre-networking contextualization script
Before=network-pre.target Before=network-pre.target
Wants=network-pre.target dev-disk-by\x2dlabel-CONTEXT.device Wants=network-pre.target local-fs.target systemd-udev-settle.service syslog.target
After=dev-disk-by\x2dlabel-CONTEXT.device After=local-fs.target systemd-udev-settle.service syslog.target
ConditionPathExists=!/var/run/one-context/context.sh.local ConditionPathExists=!/var/run/one-context/context.sh.local
[Service] [Service]

@ -2,6 +2,7 @@
Description=OpenNebula delayed reconfiguration script Description=OpenNebula delayed reconfiguration script
After=one-context.service After=one-context.service
Requisite=one-context.service Requisite=one-context.service
ConditionPathExists=/var/run/one-context/context.sh.network
[Service] [Service]
Type=forking Type=forking

@ -3,6 +3,7 @@ Description=OpenNebula reconfiguration script
After=one-context.service After=one-context.service
Requisite=one-context.service Requisite=one-context.service
Conflicts=one-context-reconfigure-delayed.service Conflicts=one-context-reconfigure-delayed.service
ConditionPathExists=/var/run/one-context/context.sh.network
[Service] [Service]
Type=oneshot Type=oneshot

Loading…
Cancel
Save