Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 2041734: ensure switchdev service dependencies #612

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mode: 0755
overwrite: true
path: "/usr/local/bin/switchdev-configuration-after-NM.sh"
path: "/usr/local/bin/switchdev-configuration-after-nm.sh"
contents:
inline: |
#!/bin/bash
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mode: 0755
overwrite: true
path: "/usr/local/bin/switchdev-configuration-before-NM.sh"
path: "/usr/local/bin/switchdev-configuration-before-nm.sh"
contents:
inline: |
#!/bin/bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ dropins:
- name: 10-switchdev.conf
contents: |
[Unit]
Wants=switchdev-configuration-before-NM.service
After=switchdev-configuration-before-NM.service
Wants=switchdev-configuration-before-nm.service
Wants=switchdev-configuration-after-nm.service
After=switchdev-configuration-before-nm.service
Before=switchdev-configuration-after-nm.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ contents: |

[Service]
Type=oneshot
ExecStart=/usr/local/bin/switchdev-configuration-after-NM.sh
ExecStart=/usr/local/bin/switchdev-configuration-after-nm.sh
StandardOutput=journal+console
StandardError=journal+console

[Install]
WantedBy=network-online.target
enabled: true
name: switchdev-configuration-after-NM.service
name: switchdev-configuration-after-nm.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ contents: |

[Service]
Type=oneshot
ExecStart=/usr/local/bin/switchdev-configuration-before-NM.sh
ExecStart=/usr/local/bin/switchdev-configuration-before-nm.sh
StandardOutput=journal+console
StandardError=journal+console

[Install]
WantedBy=network-online.target
enabled: true
name: switchdev-configuration-before-NM.service
name: switchdev-configuration-before-nm.service