Support XFS in VMs by including xfs driver in grub-mkimage
authorPaul Menzel <pmenzel@molgen.mpg.de>
Wed, 2 Jun 2021 14:18:41 +0000 (16:18 +0200)
committerPaul Menzel <pmenzel@molgen.mpg.de>
Wed, 2 Jun 2021 14:18:41 +0000 (16:18 +0200)
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.

grml-debootstrap

index 4dd900d..2d9aa1d 100755 (executable)
@@ -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