Copy keyboard settings and don't reboot
This commit is contained in:
parent
8b06bb31c0
commit
c12afc2827
@ -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 "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"
|
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
|
# Remove live-specific packages
|
||||||
echo "Removing live-specific packages ..."
|
echo "Removing live-specific packages ..."
|
||||||
wdvn-chroot "/media/install" apt -y remove live-boot live-boot-initramfs-tools
|
wdvn-chroot "/media/install" apt -y remove live-boot live-boot-initramfs-tools
|
||||||
|
@ -11,11 +11,6 @@ while true; do
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if [ "$CHOICE" == "1" ]; then
|
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
|
apt -y install locales tzdata
|
||||||
dpkg-reconfigure locales
|
dpkg-reconfigure locales
|
||||||
dpkg-reconfigure tzdata
|
dpkg-reconfigure tzdata
|
||||||
@ -56,9 +51,9 @@ ff02::2 ip6-allrouters
|
|||||||
rm "/bin/login"
|
rm "/bin/login"
|
||||||
mv "/bin/login.bak" "/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 ""
|
read -p ""
|
||||||
reboot
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CHOICE" == "2" ]; then
|
if [ "$CHOICE" == "2" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user