Skip to content

loadFSPackages: do not ignore errors from addPkg#75

Merged
rminnich merged 1 commit into
u-root:mainfrom
rminnich:donotignoreerrors
Jul 28, 2022
Merged

loadFSPackages: do not ignore errors from addPkg#75
rminnich merged 1 commit into
u-root:mainfrom
rminnich:donotignoreerrors

Conversation

@rminnich
Copy link
Copy Markdown
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 rminnich@gmail.com

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 <rminnich@gmail.com>
@rminnich rminnich force-pushed the donotignoreerrors branch from 7021515 to 7d9bcd7 Compare July 26, 2022 03:08
Copy link
Copy Markdown
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