Skip to content

Add a systemd for embedded systems with one user#326

Merged
rminnich merged 1 commit into
u-root:mainfrom
rminnich:systemd
Jun 23, 2026
Merged

Add a systemd for embedded systems with one user#326
rminnich merged 1 commit into
u-root:mainfrom
rminnich:systemd

Conversation

@rminnich

Copy link
Copy Markdown
Member

This is a dead simple systemd unit file, that assumes cpud is in root's $PATH, and a key in /key.pub.

It's really for basic use with small boards that have one user.

Copilot AI 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.

Pull request overview

Adds a minimal systemd unit + install helper intended for simple embedded deployments where cpud runs as root and authenticates via a single shared public key.

Changes:

  • Added systemd/cpud.service unit to run cpud at boot with a fixed public key path.
  • Added a systemd/Makefile to install the unit and enable/reload it.
  • Added a short systemd/README.md describing the intent and assumptions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
systemd/README.md Documents the intended “primitive” embedded usage and key location assumption.
systemd/Makefile Provides targets to install the unit and enable/reload systemd.
systemd/cpud.service Defines the systemd service for running cpud on boot.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread systemd/README.md Outdated
Comment thread systemd/Makefile
Comment thread systemd/cpud.service Outdated
@rminnich rminnich requested a review from brho June 12, 2026 15:16

@brho brho left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

(please squash commits)

Copilot AI 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.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread systemd/README.md Outdated
Comment thread systemd/Makefile Outdated
This is a dead simple systemd unit file, that assumes
cpud is in root's $PATH, and a key in /key.pub.

It's really for basic use with small boards that have
one user.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ronald Minnich <rminnich@gmail.com>
@rminnich rminnich merged commit be0d540 into u-root:main Jun 23, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants