Hello,

I am trying to create an image booting a btrfs partition with legacy BIOS, but 
no luck so far.

If I use UEFI, it works with:
(image
(format 'compressed-qcow2)
(operating-system os)
(partition-table-type 'gpt)
(partitions
(list
(partition
(size (* 40 Mio))
(offset (* 1024 1024))
(label "GNU-ESP")
(file-system "vfat")
(flags '(esp))
(initializer (gexp initialize-efi-partition)))
(partition
(size 'guess)
(label root-label)
(file-system "btrfs")
(flags '(boot))
(initializer (gexp initialize-root-partition))))))
and:
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(targets (list "/boot/efi"))))
in the os definition.

However, with:
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets '("(/dev/vda)"))))in the os definition and:
(image
(format 'compressed-qcow2)
(operating-system os)
(partitions
(list
(partition
(offset (* 1024 1024))
(size 'guess)
(label root-label)
(file-system "btrfs")
(flags '(boot))
(initializer (gexp initialize-root-partition))))))
it fails, with GRUB rescue showing unknown filesystem.

If I just replace from the last part:
(file-system "btrfs")
by:
(file-system "ext4")

the system boots fine.

Any idea why that may be?

Cheers.

Reply via email to