-
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
Uboot fallback support #1138
Uboot fallback support #1138
Conversation
Can one of the admins verify this patch?
|
bot, add author to whitelist |
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.
One minor style comment, otherwise seems reasonable to me.
Thanks for the patch!
uenv_path = glnx_strjoina (ostree_arg, "/usr/lib/ostree-boot/uEnv.txt"); | ||
uenv_fd = openat (self->sysroot->sysroot_fd, uenv_path, O_CLOEXEC | O_RDONLY); | ||
if (uenv_fd != -1) | ||
{ |
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.
Indentation looks off; we use GNU style, two spaces around braces on each side.
return FALSE; | ||
if (errno != ENOENT) | ||
{ | ||
g_prefix_error (error, "openat %s: ", uenv_path); |
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.
These two lines need to be return glnx_throw_errno_prefix (error, "openat(%s)", uenv_path)
.
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.
OK, that wasn't a new issue in this patch. I fixed it up though anyways. Thanks for the work on this!
04e6939
to
ed0e45b
Compare
Split the code that merge the system uEnv to new function. While we're here, clean up the logic to e.g. use `ot_openat_ignore_enoent()`.
Include non-default deployments in the uEnv.txt file imported by U-Boot. All the configurations beside the defaults will have numerical suffix E.G. "kernel_image2" or "bootargs2". Those U-Boot environment variables may be used from interactive boot prompt or from "altbootcmd" script.
ed0e45b
to
7ff4394
Compare
Split the code that merge the system uEnv to new function. While we're here, clean up the logic to e.g. use `ot_openat_ignore_enoent()`. Closes: #1138 Approved by: cgwalters
Include non-default deployments in the uEnv.txt file imported by U-Boot. All the configurations beside the defaults will have numerical suffix E.G. "kernel_image2" or "bootargs2". Those U-Boot environment variables may be used from interactive boot prompt or from "altbootcmd" script. Closes: #1138 Approved by: cgwalters
💔 Test failed - status-atomicjenkins |
Hmm...at first I thought I'd broken this but can't reproduce locally. @rh-atomic-bot retry |
Include non-default deployments in the uEnv.txt file imported by U-Boot. All the configurations beside the defaults will have numerical suffix E.G. "kernel_image2" or "bootargs2". Those U-Boot environment variables may be used from interactive boot prompt or from "altbootcmd" script. Closes: #1138 Approved by: cgwalters
☀️ Test successful - status-atomicjenkins |
As promised on the mailing list, here is my attempt to add fallback support for U-Boot users.
The first commit is a general cleanup, the second is the actual change.