Skip to content

src/main: add '--list' option to write-slot command #1717

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ejoerns
Copy link
Member

@ejoerns ejoerns commented May 26, 2025

This should make it more convenient to use write-slot since it does not require navigating through the more complex rauc status output or looking into the system.conf.

@ejoerns ejoerns added the enhancement Adds new functionality or enhanced handling to RAUC label May 26, 2025
Copy link

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.51%. Comparing base (e22548a) to head (9ca8134).
Report is 63 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1717   +/-   ##
=======================================
  Coverage   84.50%   84.51%           
=======================================
  Files          76       76           
  Lines       22380    22390   +10     
=======================================
+ Hits        18912    18922   +10     
  Misses       3468     3468           
Flag Coverage Δ
service=false 81.01% <100.00%> (+<0.01%) ⬆️
service=true 84.46% <100.00%> (+<0.01%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +417 to +420
.TP
\fB\-C\fR, \fB\-\-list\fR
list available slots and exit.

Copy link
Member

@jluebbe jluebbe May 26, 2025

Choose a reason for hiding this comment

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

I find options which completely replace a command's behavior confusing.

Copy link
Member Author

@ejoerns ejoerns May 26, 2025

Choose a reason for hiding this comment

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

like --help?

I thought explicitly noting this in the help text might make it clear, though.
You'd prefer write-image list? Or a separate command? A separate command would render the idea behind this useless I guess.

Copy link
Member

Choose a reason for hiding this comment

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

rauc status already lists the available slots. If that is confusing, we should improve it instead of adding something to write-slot.

Copy link
Member Author

Choose a reason for hiding this comment

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

For rauc being compiled with service support (which is the default), rauc status requires the service to run, which write-slot doesn't. For use as a standalone tool, which is more or less the intention of write-slot, I still find it useful to have a built-in way to list the slots. Not necessarily a --list option if this is too controversial.

Copy link
Member

Choose a reason for hiding this comment

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

Perhaps a rauc config command?

This should make it more convenient to use write-slot since it does not
require navigating through the more complex 'rauc status' output or
looking into the system.conf.

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
@ejoerns ejoerns force-pushed the write-slot-list branch from bcd6d44 to 9ca8134 Compare June 3, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adds new functionality or enhanced handling to RAUC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants