Create google-sudoers before the podman socket takes it
Closes #40 (closed)
Problem
On a GCP project with no ssh-keys metadata, startup.sh sets SocketGroup=google-sudoers on podman.socket before the group exists. The socket fails with status=216/GROUP, the startup script exits 1, and up fails. The reporter's diagnosis in #40 (closed) is right, and this takes its first option.
Change
startup.sh creates the group when it is absent, before the override: getent group google-sudoers >/dev/null || groupadd google-sudoers. The guest agent reuses an existing group when it adds the first account. Nothing else in the engine assumes the group exists at boot; the other mentions are comments and a troubleshooting row.
The selftest checks the guarded groupadd and that it comes before the SocketGroup line. Both checks fail without the fix.
Proof on a rig
The guest agent on the current Fedora image creates the group at boot on this project, so the failure does not show here unaided. To hold the precondition constant, a test-only gcloud wrapper (outside the repo) set block-project-ssh-keys=TRUE on the instance and ran groupdel google-sudoers once, just before the line under test.
- Old engine (main): the serial console shows
podman.socket: Failed to resolve group google-sudoers,status=216/GROUP, andstartup script failed. - This branch: startup completes. After the first
gcloud compute ssh, the user is ingoogle-sudoers,sudoworks, and/run/podman/podman.sockis owned by that group.
Diagram
None. This is a one-line ordering fix.