Repository navigation
Conversation
…s this machine uses What the first login goes through - the vsock socket, the per-connection sshd, dbus, logind, spin's runtime directory and manager - starts from the boot's first dispatch without default dependencies; no /run/nologin at boot, which pam_nologin refused the lane's first login over; sessions of class user-early-light, which logind does not hold for the user's manager or the end of the boot (systemd v259.9, logind-session.c); and udev's coldplug replays block, net, virtio, misc, input, rtc, ptp and ttyS0 rather than ~170 devices. On the bench fleet the first login went 478 -> 402 ms (lab run 43518915618). build.sh asserts each piece. Compared device by device with the full coldplug, what differs is the group of /dev/ptmx and /dev/tty (mode 666 either way), dialout on ttyS1-3 and kmem on /dev/port; the power button keeps its power-switch tag. boot:ssh-first's row puts the lane into the published release from this tree's files, beside the release as published. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keeps systemd and a real session, and takes what the first SSH login waits for off the boot's critical path.
What changes in the image
sshd@, dbus (dbus.socketcopied without itsAfter=sysinit.target), logind,user-runtime-dir@anduser@start without default dependencies (10-lane.conf)./run/nologinat boot: in the lane pam_nologin refused the first login (Access denied for user spin by PAM account configuration [preauth]). Shutdown still writes it (systemd-user-sessions' ExecStop).user-early-light: logind holds ausersession until the user's manager is up and orders its scope aftersystemd-user-sessions(systemd v259.9,logind-session.c:session_job_pending,session_start_scope). The session keeps its scope andXDG_RUNTIME_DIR; spin's manager still starts in the boot (linger)./devdiffers only in the group of/dev/ptmx//dev/tty(mode 666 either way), dialout on ttyS1-3 and kmem on/dev/port; the power button keeps itspower-switchtag. Hotplug is unchanged (new events, not a replay).build.shasserts every piece on the finished filesystem.Measured (bench fleet,
boot:ssh-first, 20 boots per row, interleaved)Run 43520353863. Part by part, run 43518915618: as built 478, lane +
user-early-light436, + filtered coldplug 402. Left out: priority (CPUWeight/Nice), −2 ms on top and a slower second login.docs/log.mdandimage/README.mdrecord it.🤖 Generated with Claude Code