Skip to content

fix unchecked errors in cmds/exp/netbootxyz & pkg/boot#2539

Merged
rminnich merged 2 commits into
u-root:mainfrom
RiSKeD:error-checks
Oct 28, 2022
Merged

fix unchecked errors in cmds/exp/netbootxyz & pkg/boot#2539
rminnich merged 2 commits into
u-root:mainfrom
RiSKeD:error-checks

Conversation

@RiSKeD

@RiSKeD RiSKeD commented Oct 25, 2022

Copy link
Copy Markdown
Contributor

I had a look at the unchecked errors, found on #2522.
In all the 3 cases, any returned errors from the underlying function should halt the calling function as well.
Replaced the kexec cmd call as well, just use the kexec pkg instead.
Signed-off-by: Fabian Wienand fabian.wienand@9elements.com

@codecov

codecov Bot commented Oct 25, 2022

Copy link
Copy Markdown

Codecov Report

Base: 73.88% // Head: 73.88% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (73093d6) compared to base (8016b9a).
Patch coverage: 25.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2539      +/-   ##
==========================================
- Coverage   73.88%   73.88%   -0.01%     
==========================================
  Files         403      403              
  Lines       40979    40983       +4     
==========================================
+ Hits        30278    30279       +1     
- Misses      10701    10704       +3     
Impacted Files Coverage Δ
pkg/boot/fit/vfit.go 52.43% <0.00%> (-1.32%) ⬇️
pkg/boot/uefi/uefi.go 90.00% <50.00%> (-1.38%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread cmds/exp/netbootxyz/netbootxyz.go Outdated
replace kexec cmd

Signed-off-by: Fabian Wienand <fabian.wienand@9elements.com>
@rminnich rminnich merged commit 9958202 into u-root:main Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Awaiting reviewer Waiting for a reviewer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants