From c12afc28274e70b2c31e48cb6c5b9ebca885c207 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 7 Nov 2022 01:53:04 +0100 Subject: [PATCH] Copy keyboard settings and don't reboot --- mods/live-installer/data/bin/login | 5 +++++ mods/oobe/data/bin/login | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/mods/live-installer/data/bin/login b/mods/live-installer/data/bin/login index 3a95ef3..0fa9a2c 100755 --- a/mods/live-installer/data/bin/login +++ b/mods/live-installer/data/bin/login @@ -187,6 +187,11 @@ $WDVN_ENCRYPT_PASS_ADD" | cryptsetup luksAddKey "$PART_DEV" echo "UUID=$UUID_PART_DATA / ext4 errors=remount-ro 0 1" >>"/media/install/etc/fstab" echo "/swap none swap sw 0 0" >>"/media/install/etc/fstab" + # Copy keyboard settings + echo "Copying keyboard settings ..." + mkdir -p "/media/install/etc/default" + cp "/etc/default/keyboard" "/media/install/etc/default/keyboard" + # Remove live-specific packages echo "Removing live-specific packages ..." wdvn-chroot "/media/install" apt -y remove live-boot live-boot-initramfs-tools diff --git a/mods/oobe/data/bin/login b/mods/oobe/data/bin/login index 4d5db53..02aa89d 100755 --- a/mods/oobe/data/bin/login +++ b/mods/oobe/data/bin/login @@ -11,11 +11,6 @@ while true; do echo "" if [ "$CHOICE" == "1" ]; then - dpkg-reconfigure keyboard-configuration - service console-setup.sh restart - udevadm trigger --subsystem-match=input --action=change - service keyboard-setup.sh restart - apt -y install locales tzdata dpkg-reconfigure locales dpkg-reconfigure tzdata @@ -56,9 +51,9 @@ ff02::2 ip6-allrouters rm "/bin/login" mv "/bin/login.bak" "/bin/login" - echo "Setup complete. Press ENTER to reboot." + echo "Setup complete. Press ENTER to use windvn." read -p "" - reboot + exit fi if [ "$CHOICE" == "2" ]; then