chore: autologin as root for now
This commit is contained in:
parent
d1e25bdddf
commit
3f443a9e9b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue