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