-
Notifications
You must be signed in to change notification settings - Fork 62
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
scripts: Always run ld_config before running any update scripts #1335
Conversation
I'm curious if there will be improvements to clearlinux/distribution#1765 with this change. |
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.
very small changes required
src/scripts.c
Outdated
@@ -94,6 +94,21 @@ static void exec_post_update_script(bool reexec, bool block) | |||
free(params[0]); | |||
} | |||
|
|||
static void run_ld_config() |
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.
you forgot the 'void' argument here, I learnt that from you 😝
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.
I think you forgot this ☝️
It's possible to create a post_update script to run ld_config, but we had problems with this in the past, so it was decided to hardcode that on swupd instead of relying on scripts. Signed-off-by: Otavio Pontes <[email protected]>
V2: Fixed the minor problems |
src/scripts.c
Outdated
@@ -94,6 +94,21 @@ static void exec_post_update_script(bool reexec, bool block) | |||
free(params[0]); | |||
} | |||
|
|||
static void run_ld_config() |
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.
I think you forgot this ☝️
Sorry, I didn't add that to the 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.
LGTM
I tried adding |
It's possible to create a post_update script to run ld_config, but we
had problems with this in the past, so it was decided to hardcode that
on swupd instead of relying on scripts.
Signed-off-by: Otavio Pontes [email protected]