From 265f342310a3cacfc0c772f6b7d6eff10d6b39f8 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Fri, 7 Jun 2019 17:01:59 +0100 Subject: [PATCH] stage4: fix autologin --- stage4/01-console-autologin/00-run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stage4/01-console-autologin/00-run.sh b/stage4/01-console-autologin/00-run.sh index 2189bef..665dcdb 100755 --- a/stage4/01-console-autologin/00-run.sh +++ b/stage4/01-console-autologin/00-run.sh @@ -1,4 +1,5 @@ #!/bin/bash -e -ln -sf /etc/systemd/system/autologin@.service \ - "${ROOTFS_DIR}/etc/systemd/system/getty.target.wants/getty@tty1.service" +on_chroot << EOF + SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_boot_behaviour B4 +EOF