Add PAM-backed login sessions

This commit is contained in:
joe committed 2026-06-16 16:26:58 -04:00
1 parent 90ce800112
commit 42bc94d831
25 files changed
+334 -44

No files matched your search

@@ -1,6 +1,6 @@
disable *
enable forgeos-shell@tty1.service
enable forgeos-shell@ttyS0.service
enable forgeos-login@tty1.service
enable forgeos-login@ttyS0.service
enable forgeos-bootdiag.service
enable forgeos-console-banner.service
enable dbus.service
@@ -0,0 +1,26 @@
[Unit]
Description=ForgeOS login prompt on %I
Documentation=man:systemd.service(5)
Wants=systemd-logind.service
After=systemd-logind.service systemd-user-sessions.service getty-pre.target
Before=getty.target
ConditionPathExists=/dev/%I
IgnoreOnIsolate=yes
[Service]
ExecStart=-/sbin/getty -L 0 %I linux
Type=idle
Restart=always
RestartSec=0
UtmpIdentifier=%I
StandardInput=tty
StandardOutput=tty
TTYPath=/dev/%I
TTYReset=yes
TTYVHangup=yes
TTYVTDisallocate=yes
IgnoreSIGPIPE=no
SendSIGHUP=yes
[Install]
WantedBy=getty.target