Skip to content

Change to use 'pxeboot' and 'boot' commands for systemboot since they are better maintained and used#2705

Merged
rminnich merged 10 commits into
u-root:mainfrom
ShellyChang110:pxeboot
Jul 27, 2023
Merged

Change to use 'pxeboot' and 'boot' commands for systemboot since they are better maintained and used#2705
rminnich merged 10 commits into
u-root:mainfrom
ShellyChang110:pxeboot

Conversation

@ShellyChang110

Copy link
Copy Markdown
Contributor

No description provided.

@johnnylinwiwynn

Copy link
Copy Markdown
Contributor

@marcjones-syspro made a PR long time ago
#2045
Build on top of his commit and we make systemboot use 'pxeboot' with ipv6 and 'boot' as its default boot commands.

@codecov

codecov Bot commented Jun 26, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 54.47% and project coverage change: -0.01% ⚠️

Comparison is base (3a5f750) 75.40% compared to head (01741a4) 75.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2705      +/-   ##
==========================================
- Coverage   75.40%   75.40%   -0.01%     
==========================================
  Files         414      415       +1     
  Lines       42257    42326      +69     
==========================================
+ Hits        31864    31914      +50     
- Misses      10393    10412      +19     
Files Changed Coverage Δ
pkg/ipmi/ocp/bootorder.go 0.00% <0.00%> (ø)
pkg/boot/systembooter/pxebooter.go 38.70% <38.70%> (ø)
pkg/boot/systembooter/localbooter.go 27.02% <55.55%> (-1.55%) ⬇️
pkg/boot/systembooter/netbooter.go 31.57% <55.55%> (-1.76%) ⬇️
pkg/boot/systembooter/bootbooter.go 90.90% <90.90%> (ø)
pkg/boot/systembooter/bootentry.go 97.22% <91.66%> (+0.07%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread cmds/boot/systemboot/main.go
Comment thread pkg/boot/systembooter/bootbooter.go Outdated
Comment thread pkg/boot/systembooter/bootbooter.go Outdated
Comment thread pkg/boot/systembooter/bootbooter_test.go Outdated
Comment thread pkg/boot/systembooter/bootbooter_test.go Outdated
Comment thread pkg/boot/systembooter/bootbooter_test.go Outdated
Comment thread pkg/boot/systembooter/bootbooter_test.go Outdated
Comment thread pkg/ipmi/ocp/bootorder.go Outdated
@rminnich rminnich added the Awaiting author Waiting for new changes or feedback for author. label Jun 27, 2023

@rminnich rminnich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

almost there!!

Comment thread pkg/ipmi/ocp/bootorder.go Outdated

@rminnich rminnich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

thank you for all your patience, there are just a few more things.

Comment thread pkg/boot/systembooter/bootentry.go Outdated
Comment thread pkg/boot/systembooter/pxebooter.go Outdated
@johnnylinwiwynn johnnylinwiwynn removed the Awaiting author Waiting for new changes or feedback for author. label Jul 19, 2023
marcjones-syspro and others added 7 commits July 20, 2023 13:13
Adds pxeboot and boot booters. This also makes them the default booters if
the VPD is empty.

Signed-off-by: Marc Jones <marcjones@sysproconsulting.com>
…ption

Replace 'localboot' with 'boot' since it's better maintained.

Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com>
Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
…ogger to replace log

Because it is not prefer to use log in packages, Use ulog.Logger to
replace log.

Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
…itch -v

Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
…f NullBooter

Return (Booter, error) instead of NullBooter when nothing is found,
because it is more idiomatic Go style.

Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
@rminnich rminnich added the Awaiting author Waiting for new changes or feedback for author. label Jul 23, 2023

@rminnich rminnich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I hope this all works :)

@johnnylinwiwynn johnnylinwiwynn removed the Awaiting author Waiting for new changes or feedback for author. label Jul 27, 2023
@rminnich rminnich merged commit 95d3e9a into u-root:main Jul 27, 2023
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.

4 participants