Stop creating a dialout group for Graywolf

Graywolf's setup created a dialout group, which nothing on Arch uses:
serial ports belong to uucp, and Graywolf's service runs as you, with
your groups. Machines that have the group keep it, in case anything else
uses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 14:09:46 -07:00
co-authored by Claude Opus 5.5
parent c409a6cb17
commit 4cb5ce25ff
4 changed files with 3 additions and 8 deletions
-6
View File
@@ -21,9 +21,3 @@ control a radio, with rigctld started when the radio is plugged in.
already lets you open the card's `hidraw` device already lets you open the card's `hidraw` device
- [ ] Later: run `radio configure` when a known radio is plugged in (a udev - [ ] Later: run `radio configure` when a known radio is plugged in (a udev
rule starting a systemd user unit) rule starting a systemd user unit)
## Other
- [ ] Graywolf's setup (`install_graywolf_service` in `update.sh`) creates a
`dialout` group, which nothing on Arch uses. Its service runs as you,
so it already has your uucp membership. Drop the `groupadd`
+1 -1
View File
@@ -25,7 +25,7 @@ setup_fake_home() {
# Commands that just log and succeed # Commands that just log and succeed
local cmd local cmd
for cmd in systemctl udevadm groupadd yay update-desktop-database update-mime-database \ for cmd in systemctl udevadm yay update-desktop-database update-mime-database \
xdg-icon-resource xdg-desktop-menu wine wineboot winetricks xdotool; do xdg-icon-resource xdg-desktop-menu wine wineboot winetricks xdotool; do
stub "$cmd" 'exit 0' stub "$cmd" 'exit 0'
done done
+2
View File
@@ -136,6 +136,8 @@ setup() {
[ "$status" -eq 0 ] [ "$status" -eq 0 ]
grep -qx "sudo tee /etc/systemd/system/graywolf.service" "$STUB_LOG" grep -qx "sudo tee /etc/systemd/system/graywolf.service" "$STUB_LOG"
grep -qx "enable_services graywolf" "$STUB_LOG" grep -qx "enable_services graywolf" "$STUB_LOG"
# It runs as you, with your groups: it needs no group of its own
! grep -q "groupadd" "$STUB_LOG"
} }
@test "the graywolf web UI listens only on this machine" { @test "the graywolf web UI listens only on this machine" {
-1
View File
@@ -151,7 +151,6 @@ install_graywolf_service() {
local unit=/etc/systemd/system/graywolf.service rendered local unit=/etc/systemd/system/graywolf.service rendered
rendered="$(sed "s|HAMPACK_USER|$USER|g; s|HAMPACK_HOME|$HOME|g" "$SELF/systemd/graywolf.service")" rendered="$(sed "s|HAMPACK_USER|$USER|g; s|HAMPACK_HOME|$HOME|g" "$SELF/systemd/graywolf.service")"
mkdir -p "$HOME/.local/share/graywolf" mkdir -p "$HOME/.local/share/graywolf"
getent group dialout > /dev/null || sudo groupadd dialout || return 1
if [ "$(cat "$unit" 2> /dev/null)" != "$rendered" ]; then if [ "$(cat "$unit" 2> /dev/null)" != "$rendered" ]; then
echo "Installing $unit..." echo "Installing $unit..."