When installing Arch on the xps, the command grub-mkconfig always returned errors, no matter what I tried. It resulted that I had to edit /boot/grub/grub.cfg several times through trial and error in order to be able to boot the system.

It’s not entirely fixed yet, but at least I want to save this here so that in the future if I upgrade something and Grub breaks again, I can recover.

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-55e2932a-1b6c-46af-9ee5-1ba7ddcbca2b' {
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos 
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid
            --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 55e2932a-1b6c-46af-9ee5-1ba7ddcbca2b
            search --no-floppy --fs-uuid --set=root 55e2932a-1b6c-46af-9ee5-1ba7ddcbca2b
        echo    'Loading Linux core repo kernel ...'
        linux   /vmlinuz-linux cryptdevice=/dev/lvm/root:root root=/dev/mapper/root rw quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux.img