Skip to content

Initial integration fixes#2

Merged
lionel merged 3 commits into
mainfrom
lionel/initial-integration-fixes
Sep 2, 2025
Merged

Initial integration fixes#2
lionel merged 3 commits into
mainfrom
lionel/initial-integration-fixes

Conversation

@lionel

@lionel lionel commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

Fixes needed before silod can be expected to integrate successfully and ship as a Debian package.

The driver adheres to the power-supply framework, and property
name (for the maximum charge current that may be requested) is
`POWER_SUPPLY_CONSTANT_CHARGE_CURRENT_MAX`.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch main
# Your branch is up to date with 'origin/main'.
#
# Changes to be committed:
#	modified:   src/supply.rs
#
# Changes not staged for commit:
#	modified:   Cargo.toml
#	modified:   debian/service
#
# Untracked files:
#	Cargo.toml~
#	debian/service~
#	src/supply.rs~
#
Moved install location to the directory for things that run as
root. Also, tweak the extended-description to be clear that we only
initiate a shutdown when power has failed *and* the threshold
condition is met.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch main
# Your branch is ahead of 'origin/main' by 1 commit.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#	modified:   Cargo.toml
#
# Changes not staged for commit:
#	modified:   debian/service
#
# Untracked files:
#	Cargo.toml~
#	debian/service~
#	src/supply.rs~
#
The service should find `silod` in `/usr/sbin`, which is the directory
for things that run as root.

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch main
# Your branch is ahead of 'origin/main' by 1 commit.
#   (use "git push" to publish your local commits)
#
# Changes to be committed:
#	modified:   Cargo.toml
#
# Changes not staged for commit:
#	modified:   debian/service
#
# Untracked files:
#	Cargo.toml~
#	debian/service~
#	src/supply.rs~
#
@lionel

lionel commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

Also, it isn't yet clear why cargo-deb, needed for building as a Debian package, isn't listed anywhere as a potentially required package for building.

@lionel lionel requested a review from markfeathers September 2, 2025 22:36

@ts-kris ts-kris left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Changes look reasonable to me based on prior discussions

@lionel lionel merged commit 1a2203a into main Sep 2, 2025
2 checks passed
@lionel lionel deleted the lionel/initial-integration-fixes branch September 2, 2025 23:07
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