From: Paul Menzel Date: Wed, 2 Jun 2021 14:18:41 +0000 (+0200) Subject: Support XFS in VMs by including xfs driver in grub-mkimage X-Git-Tag: v0.98~4^2 X-Git-Url: http://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=899540974cd6a5eb430b8731f4b4cd85788948c7 Support XFS in VMs by including xfs driver in grub-mkimage Follow commit 01b5b0ff ("Support F2FS in VMs by including f2fs driver in grub-mkimage") to support XFS. I’d say, open-coding three entries is alright but for more entries a generic solution would be nice. --- diff --git a/grml-debootstrap b/grml-debootstrap index 4dd900d..2d9aa1d 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -1546,6 +1546,9 @@ if [[ -z "${GRUB}" ]] || ! dd if="${GRUB}" bs=512 count=1 2>/dev/null | cat -v | f2fs) chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos f2fs ;; + xfs) + chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos xfs + ;; # NOTE - we might need to distinguish between further filesystems *) chroot "${MNTPOINT}" grub-mkimage -O i386-pc -p "(hd0,msdos1)/boot/grub" -o /tmp/core.img biosdisk part_msdos ext2