Skip to content

sshd: test dpkg reconfigure behaviour#454

Merged
picnoir merged 1 commit intomainfrom
pic/ssh-dpkg-install-test
Apr 13, 2026
Merged

sshd: test dpkg reconfigure behaviour#454
picnoir merged 1 commit intomainfrom
pic/ssh-dpkg-install-test

Conversation

@picnoir
Copy link
Copy Markdown
Member

@picnoir picnoir commented Apr 13, 2026

We're using the openssh-server-provided binary, but we're disabling the systemd units and we're overriding its config.

I was expecting the dpkg install/reconfigure process to override our setup, but turns out it's not! Great news!

When running interactively, dpkg will prompt the user with the scary curse message asking the user whether or not they want to override their custom configuration pointing to the nix store. The default selection is to "no".

When running non-interactively, dpkg won't override any system-manager configuration. Adding a test ensuring that.

image

@picnoir picnoir requested a review from jfroche April 13, 2026 19:01
@picnoir picnoir force-pushed the pic/ssh-dpkg-install-test branch from 4090d6e to d2e12fb Compare April 13, 2026 19:12
We're using the openssh-server-provided binary, but we're disabling
the systemd units and we're overriding its config.

I was expecting the dpkg install/reconfigure process to override our
setup, but turns out it's not! Great news!

When running interactively, dpkg will prompt the user with the scary
curse message asking the user whether or not they want to override
their custom configuration pointing to the nix store. The default
selection is to "no".

When running non-interactively, dpkg won't override any system-manager
configuration. Adding a test ensuring that.
@picnoir picnoir force-pushed the pic/ssh-dpkg-install-test branch from d2e12fb to 8e116fa Compare April 13, 2026 19:18
@picnoir
Copy link
Copy Markdown
Member Author

picnoir commented Apr 13, 2026

For posterity sake. I was originally planning to leverage the dpkg --post-invoke hook (https://manpages.ubuntu.com/manpages//focal/fr/man1/dpkg.1.html) to re-activate the system-manager profile after the dpkg run.

Seems like it won't be necessary after all.

@picnoir picnoir merged commit e028253 into main Apr 13, 2026
6 checks passed
@picnoir picnoir deleted the pic/ssh-dpkg-install-test branch April 13, 2026 19:21
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