Fix: error creating keyboard config in vm due to removal of xorg dir
This commit is contained in:
parent
875b8738ba
commit
f086d55071
@ -217,7 +217,7 @@ EOF
|
|||||||
install_bootloader()
|
install_bootloader()
|
||||||
{
|
{
|
||||||
if ! [[ $ROOT_PART =~ /dev/mapper ]]; then
|
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)"
|
ROOT_PART_ID="UUID=$(blkid -s UUID -o value $ROOT_PART)"
|
||||||
else
|
else
|
||||||
ROOT_PART_ID="UUID=$(blkid -s PARTUUID -o value $ROOT_PART)"
|
ROOT_PART_ID="UUID=$(blkid -s PARTUUID -o value $ROOT_PART)"
|
||||||
@ -227,6 +227,9 @@ install_bootloader()
|
|||||||
ROOT_PART_ID="$ROOT_PART"
|
ROOT_PART_ID="$ROOT_PART"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# for virtual machine remove the ucode
|
||||||
|
[[ $VM ]] && UCODE=""
|
||||||
|
|
||||||
# remove old UEFI boot entries
|
# remove old UEFI boot entries
|
||||||
if [[ $SYS == 'UEFI' ]]; then
|
if [[ $SYS == 'UEFI' ]]; then
|
||||||
find ${MNT}${BMNTS[$SYS-$BOOTLDR]}/EFI/ \
|
find ${MNT}${BMNTS[$SYS-$BOOTLDR]}/EFI/ \
|
||||||
|
@ -138,6 +138,7 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# set the keymaps
|
# set the keymaps
|
||||||
|
mkdir -p $MNT/etc/X11/xorg.conf.d
|
||||||
cat > $MNT/etc/X11/xorg.conf.d/00-keyboard.conf <<EOF
|
cat > $MNT/etc/X11/xorg.conf.d/00-keyboard.conf <<EOF
|
||||||
# Use localectl(1) to instruct systemd-localed to update it.
|
# Use localectl(1) to instruct systemd-localed to update it.
|
||||||
Section "InputClass"
|
Section "InputClass"
|
||||||
|
Reference in New Issue
Block a user