-
Notifications
You must be signed in to change notification settings - Fork 305
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
bin/admin-upgrade: add kexec support #3362
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ typedef enum | |
OSTREE_SYSROOT_UPGRADER_FLAGS_NONE = (1 << 0), | ||
OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED = (1 << 1), | ||
OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE = (1 << 2), | ||
OSTREE_SYSROOT_UPGRADER_FLAGS_KEXEC = (1 << 3), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not opposed but do you think we still need this API flag though, versus just having callers chose to do it? It feels like an optional secondary step, and it's basically a flag that just adds an API call that the invoking code can just run directly too. |
||
} OstreeSysrootUpgraderFlags; | ||
|
||
_OSTREE_PUBLIC | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,4 +268,9 @@ gboolean ostree_sysroot_simple_write_deployment (OstreeSysroot *sysroot, const c | |
OstreeSysrootSimpleWriteDeploymentFlags flags, | ||
GCancellable *cancellable, GError **error); | ||
|
||
_OSTREE_PUBLIC | ||
gboolean | ||
ostree_sysroot_deployment_kexec_load (OstreeSysroot *self, OstreeDeployment *deployment, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When adding new API you'll need to also add this |
||
GCancellable *cancellable, GError **error); | ||
|
||
G_END_DECLS |
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 minor style thing, having a
{
is preferred on at least the outer conditional in these nested if setups.