Skip to content

Move less-maintained boot commands#2924

Merged
hugelgupf merged 4 commits into
u-root:mainfrom
hugelgupf:boot
Feb 24, 2024
Merged

Move less-maintained boot commands#2924
hugelgupf merged 4 commits into
u-root:mainfrom
hugelgupf:boot

Conversation

@hugelgupf

@hugelgupf hugelgupf commented Feb 20, 2024

Copy link
Copy Markdown
Member

fbnetboot, localboot, and systemboot are not well-maintained here upstream. We get questions from people about localboot all the time, but as we've merged most localboot functionality into boot and most current maintainers are more familiar with boot and pxeboot, let's move them "out" front and recommend those.

Fixes #2911
Fixes #2487
Fixes #2483
Fixes #2142

@hugelgupf hugelgupf requested a review from a team February 20, 2024 02:42
@codecov

codecov Bot commented Feb 20, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.11%. Comparing base (0befc99) to head (0666964).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2924   +/-   ##
=======================================
  Coverage   78.11%   78.11%           
=======================================
  Files         430      430           
  Lines       43153    43153           
=======================================
  Hits        33709    33709           
  Misses       9444     9444           
Flag Coverage Δ
.-amd64 67.87% <ø> (ø)
cmds/...-amd64 70.48% <ø> (+0.05%) ⬆️
integration/generic-tests/...-amd64 20.41% <ø> (ø)
integration/generic-tests/...-arm 11.74% <ø> (ø)
integration/generic-tests/...-arm64 23.74% <ø> (ø)
integration/gotests/...-amd64 74.66% <ø> (ø)
integration/gotests/...-arm 75.80% <ø> (ø)
integration/gotests/...-arm64 75.70% <ø> (-0.08%) ⬇️
pkg/...-amd64 76.35% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@hugelgupf hugelgupf added the Awaiting reviewer Waiting for a reviewer. label Feb 20, 2024
Signed-off-by: Chris Koch <chrisko@google.com>
Signed-off-by: Chris Koch <chrisko@google.com>
@hugelgupf

Copy link
Copy Markdown
Member Author

@binjip978 I can't reproduce the golangci-lint issues locally, can you help?

$ go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
$ golangci-lint run ./...
$ echo $?
0

@binjip978

Copy link
Copy Markdown
Contributor

@binjip978 I can't reproduce the golangci-lint issues locally, can you help?

$ go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2
$ golangci-lint run ./...
$ echo $?
0

Ah sorry, don't get it right, I will try to look.

@binjip978

binjip978 commented Feb 20, 2024

Copy link
Copy Markdown
Contributor

@hugelgupf I can't reproduce it locally either with binary or staticcheck. But issue is gone is version will be 1.52.1 or go 1.22, golangci-lint updated 5 days ago, maybe that's related. Maybe we should stick with 1.52.1.

Your PR #2929 but with version change.

@johnnylinwiwynn johnnylinwiwynn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Moving them from cmds/boot to cmds/exp is fine and makes sense to me.

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

This clears up some confusion, but, still, can we just remove them? Is anyone anywhere using them?

Exp is kind of "stuff somebody is using" but there's no evidence anyone is using these, or am I missing something.

@rminnich rminnich added Awaiting author Waiting for new changes or feedback for author. and removed Awaiting reviewer Waiting for a reviewer. labels Feb 21, 2024
@hugelgupf

Copy link
Copy Markdown
Member Author

This clears up some confusion, but, still, can we just remove them? Is anyone anywhere using them?

Exp is kind of "stuff somebody is using" but there's no evidence anyone is using these, or am I missing something.

I think I'll let @johnnylinwiwynn speak on that. For now, I'll just move them. I see that the system boot command has moved to pxeboot and boot for the most part, with a fallback to fbnetboot. So perhaps we can delete localboot completely?

@hugelgupf hugelgupf added Awaiting reviewer Waiting for a reviewer. and removed Awaiting author Waiting for new changes or feedback for author. labels Feb 22, 2024
@hugelgupf hugelgupf merged commit 47bc9bb into u-root:main Feb 24, 2024
@hugelgupf hugelgupf deleted the boot branch February 24, 2024 06:27
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

4 participants