]> git.proxmox.com Git - pve-installer.git/commit - Proxmox/Install.pm
raid setup: btrfs: do not allow legacy BIOS boot on 4Kn disks
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 10 Aug 2023 10:31:56 +0000 (12:31 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 23 Aug 2023 08:31:55 +0000 (10:31 +0200)
commit8b8efb9d08a9a993e18f870dadd12acf5451f208
treef09c09cf309efc55b92926775d531e6ef0fd0e4f
parent749572552d7fed3904e00229a1db30ef6364a379
raid setup: btrfs: do not allow legacy BIOS boot on 4Kn disks

This is already checked for LVM and ZFS setups, but not for Btrfs. Add
it there too, as it doesn't work anyway.

Tested by creating a block device with 4K sectorsize using
the following QEMU args:
  -device virtio-blk,drive=testdrive4k,logical_block_size=4096,physical_block_size=4096
  -drive file=/path/to/4k-testdisk.img,if=none,id=testdrive4k

The 4k-testdisk.img was created with:
  qemu-img create -f qcow2 /path/to/4k-testdisk.img 16G

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
Proxmox/Install.pm