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
DefaultDependencies=no
Before=network-pre.target
Wants=network-pre.target local-fs.target dev-disk-by\x2dlabel-CONTEXT.device
After=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 systemd-udev-settle.service syslog.target
ConditionPathExists=!/var/run/one-context/context.sh.local
[Service]

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

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

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

Loading…
Cancel
Save