fix login failure

This commit is contained in:
2026-10-01 19:20:02 +03:00
parent 315311d160
commit 281e1ca87d
8 changed files with 44 additions and 2 deletions
@@ -4,7 +4,12 @@ set -eu
chmod 0755 /usr/local/sbin/ep-eraser-remote-setup
chmod 0750 /etc/sudoers.d
chmod 0440 /etc/sudoers.d/ep-eraser
chmod 0644 /etc/systemd/system/ep-eraser.service /etc/systemd/system/ep-eraser-remote-access.service
chmod 0644 /etc/systemd/system/getty@tty2.service.d/autologin.conf
chmod 0644 /etc/systemd/system/ssh.service.d/ep-eraser.conf
chmod 0644 /etc/systemd/system/inetd.service.d/ep-eraser.conf
visudo --check --file=/etc/sudoers
install -d -m 0755 /run/sshd
sshd -t
systemctl enable ep-eraser-remote-access.service ssh.service inetd.service
systemctl mask getty@tty1.service
systemctl enable ep-eraser-remote-access.service ssh.service inetd.service getty@tty2.service
@@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg" width="840" height="240" viewBox="0 0 280 80" role="img" aria-labelledby="logo-title">
<title id="logo-title">Eternity Project / FI</title>
<g transform="translate(10 8)">
<circle cx="32" cy="32" r="28" fill="none" stroke="#11212b" stroke-width="4"/>
<circle cx="18" cy="18" r="4" fill="#ff6b35"/>
<circle cx="46" cy="46" r="4" fill="#ff6b35"/>
<circle cx="32" cy="32" r="4" fill="#c7ef4b"/>
</g>
<g font-family="'DM Mono', Consolas, monospace" fill="#11212b">
<text x="94" y="35" font-size="32" font-weight="700" letter-spacing="2">ETERNITY</text>
<text x="94" y="58" font-size="18" fill="#59706b">PROJECT / FI</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 718 B

@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320" width="320" height="320" role="img" aria-label="Eternity Project wheel">
<circle cx="160" cy="160" r="156" fill="none" stroke="#ff6b35" stroke-width="4"/>
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(45 160 160)"/>
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(90 160 160)"/>
<line x1="0" y1="160" x2="320" y2="160" stroke="#ff6b35" stroke-width="1" transform="rotate(135 160 160)"/>
<text x="160" y="200" text-anchor="middle" font-family="Georgia, serif" font-size="140" fill="#ff6b35">&#8734;</text>
</svg>

After

Width:  |  Height:  |  Size: 681 B

@@ -0,0 +1,3 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin eraser --noclear %I $TERM
@@ -0,0 +1,3 @@
[Unit]
Requires=ep-eraser-remote-access.service
After=ep-eraser-remote-access.service
@@ -0,0 +1,3 @@
[Unit]
Requires=ep-eraser-remote-access.service
After=ep-eraser-remote-access.service
@@ -1,4 +1,10 @@
#!/bin/sh
set -eu
printf '%s\n' 'eraser:eperaser' | chpasswd
if ! id eraser >/dev/null 2>&1; then
echo 'live-config did not create the eraser account' >&2
exit 1
fi
printf '%s\n' 'eraser:eperaser' | chpasswd
echo 'Password configured for eraser'