Try and enable autologin to the desktop
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
# Enable ssh.
|
||||
touch ${ROOTFS_DIR}/boot/ssh
|
||||
|
||||
# Boot to gui by default
|
||||
on_chroot << EOF
|
||||
systemctl set-default graphical.target
|
||||
ln -fs /lib/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/[email protected]
|
||||
EOF
|
||||
|
||||
install -m 644 files/autologin.conf ${ROOTFS_DIR}/etc/systemd/system/[email protected]/autologin.conf
|
||||
|
||||
# Set up sudoers.d for user patch
|
||||
rm -f ${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd
|
||||
install -m 440 files/010_pi-nopasswd ${ROOTFS_DIR}/etc/sudoers.d/
|
||||
@@ -0,0 +1 @@
|
||||
pi ALL=(ALL) NOPASSWD: ALL
|
||||
@@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin pi --noclear %I \$TERM
|
||||
Reference in New Issue
Block a user