16 lines
364 B
Bash
Executable File
16 lines
364 B
Bash
Executable File
#!/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
|