Fix the autologin to desktop
This commit is contained in:
@@ -5,11 +5,11 @@ touch ${ROOTFS_DIR}/boot/ssh
|
||||
on_chroot << EOF
|
||||
systemctl set-default graphical.target
|
||||
ln -fs /lib/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/[email protected]
|
||||
sed /etc/lightdm/lightdm.conf -i -e "s/^\(#\|\)autologin-user=.*/autologin-user=pi/"
|
||||
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/
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin pi --noclear %I \$TERM
|
||||
ExecStart=-/sbin/agetty --autologin pi --noclear %I $TERM
|
||||
|
||||
Reference in New Issue
Block a user