aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerge Schneider <[email protected]>2019-06-07 17:01:59 +0100
committerSerge Schneider <[email protected]>2019-06-07 19:51:08 +0100
commit265f342310a3cacfc0c772f6b7d6eff10d6b39f8 (patch)
tree4e5fc9b0d1136d99a6d3ad85ff344214aa0914b2
parent73fc1462fdf2edf1627867ac4a10ab70d54561f6 (diff)
stage4: fix autologin
-rwxr-xr-xstage4/01-console-autologin/00-run.sh5
1 files 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/[email protected] \
- "${ROOTFS_DIR}/etc/systemd/system/getty.target.wants/[email protected]"
+on_chroot << EOF
+ SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_boot_behaviour B4
+EOF