-
Notifications
You must be signed in to change notification settings - Fork 1
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
Make kargs.sh work with systemd service and for Ubuntu #53
Conversation
Thanks for your PR,
To skip the vendors CIs, Maintainers can use one of:
|
596b809
to
dfb9915
Compare
Pull Request Test Coverage Report for Build 13436956034Details
💛 - Coveralls |
508a194
to
265f915
Compare
Missing Signed-off? |
@@ -81,7 +81,8 @@ type genericPluginOptions struct { | |||
skipBridgeConfiguration bool | |||
} | |||
|
|||
const scriptsPath = "bindata/scripts/kargs.sh" | |||
const daemonScriptsPath = "bindata/scripts/kargs.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. try to refrain of relative path
const daemonScriptsPath = "bindata/scripts/kargs.sh" | |
const daemonScriptsPath = "/bindata/scripts/kargs.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -81,7 +81,8 @@ type genericPluginOptions struct { | |||
skipBridgeConfiguration bool | |||
} | |||
|
|||
const scriptsPath = "bindata/scripts/kargs.sh" | |||
const daemonScriptsPath = "bindata/scripts/kargs.sh" | |||
const systemdScriptsPath = "//var/lib/sriov/kargs.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. remove double '/'
const systemdScriptsPath = "//var/lib/sriov/kargs.sh" | |
const systemdScriptsPath = "/var/lib/sriov/kargs.sh" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -116,7 +116,7 @@ spec: | |||
command: | |||
- /bin/bash | |||
- -c | |||
- mkdir -p /host/var/lib/sriov/ && cp /usr/bin/sriov-network-config-daemon /host/var/lib/sriov/sriov-network-config-daemon && chcon -t bin_t /host/var/lib/sriov/sriov-network-config-daemon | true # Allow systemd to run the file, use pipe true to not failed if the system doesn't have selinux or apparmor enabled | |||
- mkdir -p /host/var/lib/sriov/ && cp /usr/bin/sriov-network-config-daemon /host/var/lib/sriov/sriov-network-config-daemon && chcon -t bin_t /host/var/lib/sriov/sriov-network-config-daemon | true && cp /bindata/scripts/kargs.sh /host/var/lib/sriov/kargs.sh && chcon -t bin_t /host/var/lib/sriov/kargs.sh | true # Allow systemd to run the file, use pipe true to not failed if the system doesn't have selinux or apparmor enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit. This is a very long command, and can tend to be error prune. You should consider using another script (e.g. init-systemd.sh) and break this command to several lines in script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch is it ok to do it in a follow up PR?
Signed-off-by: Ivan Kolodiazhnyi <[email protected]>
No description provided.