-
Notifications
You must be signed in to change notification settings - Fork 733
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
[SMAGENT-2075] installer removes older sysdig-probes before loading newly built probe #1558
Conversation
@@ -196,3 +196,5 @@ elif [ -f /etc/system-release-cpe ]; then | |||
else | |||
unsupported | |||
fi | |||
|
|||
modprobe -r _COMPONENT__probe |
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.
Your description says you're loading a module. man modprobe
says:
-r, --remove
This option causes modprobe to remove rather than insert a module.
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.
this has been changed to remove -r flag in latest commit
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.
reverting change; the reason why we have the -r flag is because sysdig automatically loads the newest probe, but in a situation where we are upgrading from a previous sysdig version the newer probe cannot be loaded because the older ver. probe is already loaded and has the same name as the newer probe module. This change ensures this won't happen.
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.
does the probe get unloaded when you exit an instance of sysdig?
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.
@speedyguy17 no, it stays loaded.
This has now been tested |
Added modprobe line to load newly built probe in sysdig install script