chore: autologin as root for now

This commit is contained in:
Lars Sjöström 2025-03-06 17:17:53 +01:00
parent d1e25bdddf
commit 3f443a9e9b
No known key found for this signature in database

View file

@ -38,13 +38,14 @@ cat <<EOF > $out/etc/issue
EOF
# replace agetty with busybox getty
# replace agetty with busybox getty (optionally autologin)
mkdir $out/usr/lib/systemd/system/serial-getty@.service.d
cat <<EOF > $out/usr/lib/systemd/system/serial-getty@.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/sbin/getty -L %I 115200 vt100
ExecStart=-/bin/login -f root
EOF
# ExecStart=-/sbin/getty -L %I 115200 vt100
# Configure systemd-repart
cat <<EOF > $out/etc/repart.d/10-esp.conf