Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Conversation

guyshapiro
Copy link
Contributor

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.

@rh-atomic-bot
Copy link

Can one of the admins verify this patch?
I understand the following commands:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

@cgwalters
Copy link
Member

bot, add author to whitelist

Copy link
Member

@cgwalters cgwalters left a 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)
{
Copy link
Member

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);
Copy link
Member

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).

Copy link
Member

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!

Guy Shapiro added 2 commits September 7, 2017 15:13
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.
@cgwalters
Copy link
Member

@rh-atomic-bot r+ 7ff4394

@rh-atomic-bot
Copy link

⌛ Testing commit 7ff4394 with merge 5bcd33d...

rh-atomic-bot pushed a commit that referenced this pull request Sep 7, 2017
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
rh-atomic-bot pushed a commit that referenced this pull request Sep 7, 2017
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
@rh-atomic-bot
Copy link

💔 Test failed - status-atomicjenkins

@cgwalters
Copy link
Member

FAIL: libostree/test-admin-deploy-uboot.sh.test (Child process killed by signal 9)

Hmm...at first I thought I'd broken this but can't reproduce locally.

@rh-atomic-bot retry

@rh-atomic-bot
Copy link

⌛ Testing commit 7ff4394 with merge 2a7fdfd...

rh-atomic-bot pushed a commit that referenced this pull request Sep 8, 2017
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
@rh-atomic-bot
Copy link

☀️ Test successful - status-atomicjenkins
Approved by: cgwalters
Pushing 2a7fdfd to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants