Fix: error creating keyboard config in vm due to removal of xorg dir

This commit is contained in:
natemaia 2018-12-16 00:34:16 -08:00
parent 875b8738ba
commit f086d55071
2 changed files with 5 additions and 1 deletions

View File

@ -217,7 +217,7 @@ EOF
install_bootloader()
{
if ! [[ $ROOT_PART =~ /dev/mapper ]]; then
if [[ $BOOTLDR == 'syslinux' && $SYS == 'BIOS' ]]; then
if [[ $BOOTLDR == 'syslinux' ]]; then
ROOT_PART_ID="UUID=$(blkid -s UUID -o value $ROOT_PART)"
else
ROOT_PART_ID="UUID=$(blkid -s PARTUUID -o value $ROOT_PART)"
@ -227,6 +227,9 @@ install_bootloader()
ROOT_PART_ID="$ROOT_PART"
fi
# for virtual machine remove the ucode
[[ $VM ]] && UCODE=""
# remove old UEFI boot entries
if [[ $SYS == 'UEFI' ]]; then
find ${MNT}${BMNTS[$SYS-$BOOTLDR]}/EFI/ \

View File

@ -138,6 +138,7 @@ EOF
fi
# set the keymaps
mkdir -p $MNT/etc/X11/xorg.conf.d
cat > $MNT/etc/X11/xorg.conf.d/00-keyboard.conf <<EOF
# Use localectl(1) to instruct systemd-localed to update it.
Section "InputClass"