Added autologin
This commit is contained in:
parent
ff9a6a2f5d
commit
bc2505a534
15
stage2/05-autologin/00-run.sh
Executable file
15
stage2/05-autologin/00-run.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
on_chroot << ENDCHROOT
|
||||||
|
|
||||||
|
systemctl set-default multi-user.target
|
||||||
|
|
||||||
|
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||||
|
|
||||||
|
cat > /etc/systemd/system/getty@tty1.service.d/autologin.conf << EOF
|
||||||
|
[Service]
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=-/sbin/agetty --autologin ${FIRST_USER_NAME} --noclear %I \\\$TERM
|
||||||
|
EOF
|
||||||
|
|
||||||
|
ENDCHROOT
|
Loading…
Reference in New Issue
Block a user