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

loadFSPackages: do not ignore errors from addPkg #75

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

rminnich
Copy link
Member

loadFSPackages is currently ignoring errors returned by addPkg.

This results in a very bad outcome: firmware images that are missing commands.
For example, if you corrupt, e.g., date, u-root will still build
a firmware image with date missing.

This has, in turn, resulted in the creation of broken images (found in
the wild for those of us using cpu).

There is now a test in u-root specifically for the case that
this error is ignored (u-root/u-root#2451)
and this fix makes that new test work, where it does not pass
currently.

Signed-off-by: Ronald G. Minnich [email protected]

loadFSPackages is currently ignoring errors returned by addPkg.

This results in a very bad outcome: firmware images that are missing commands.
For example, if you corrupt, e.g., date, u-root will still build
a firmware image with date missing.

This has, in turn, resulted in the creation of broken images (found in
the wild for those of us using cpu).

There is now a test in u-root specifically for the case that
this error is ignored (u-root/u-root#2451)
and this fix makes that new test work, where it does not pass
currently.

Signed-off-by: Ronald G. Minnich <[email protected]>
@rminnich rminnich force-pushed the donotignoreerrors branch from 7021515 to 7d9bcd7 Compare July 26, 2022 03:08
Copy link
Member

@10000TB 10000TB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought fixed this issue... but looks like not quite from last attempt #73... human error

@rminnich rminnich merged commit 85dc1fd into u-root:main Jul 28, 2022
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.

2 participants