From 899540974cd6a5eb430b8731f4b4cd85788948c7 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 2 Jun 2021 16:18:41 +0200 Subject: [PATCH] Support XFS in VMs by including xfs driver in grub-mkimage MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.1.4