summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-02-20 14:27:27 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-02-20 14:27:27 +0100
commitb4d773ef93ec3474048f73b880abf4a58be31a98 (patch)
tree36b1f397a2c302ccd2a5f202f577b1c46d9361ed
parent28344bf89ba75759ad0f8204959e9d03f3d30783 (diff)
downloaddebvm-b4d773ef93ec3474048f73b880abf4a58be31a98.tar.gz
debvm-create: fix graphical sysv autologin
-rwxr-xr-xshare/customize-autologin.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/customize-autologin.sh b/share/customize-autologin.sh
index 58bf149..c0b4d28 100755
--- a/share/customize-autologin.sh
+++ b/share/customize-autologin.sh
@@ -29,6 +29,8 @@ fi
if test "$(dpkg-query --root "$TARGET" -f '${db:Status-Status}' -W sysvinit-core 2>/dev/null)" = installed; then
# shellcheck disable=SC2016 # intentional non-expansion
echo 'C0:2345:respawn:/sbin/getty -8 --noclear --keep-baud -a root console 115200,38400,9600 $TERM' >> "$TARGET/etc/inittab"
+ # delete tty1, which could be /dev/console
+ sed -i -e '/^1:/d' "$TARGET/etc/inittab"
exit 0
fi