[Bug 2046669] [NEW] BTRFS Incorrect Sector Size
Mark Lopez
2046669 at bugs.launchpad.net
Sun Dec 17 20:22:27 UTC 2023
Public bug reported:
When attempting to use curtin to install Ubuntu with a BTRFS + luks
root, curtin uses an invalid sector size, causing mkfs.btrfs to exit
with error 1. It appears that mkfs.btrfs is expecting either a value of
4k or 64k, but curtin generates a sector size of 2048 (from
blockdev_sector_size it appears).
In the Ubuntu installer, specifying extra_options directly, works around
this issue. For example:
- id: boot-format
type: format
fstype: btrfs
volume: boot-partition
extra_options:
- --sectorsize
- 4k
This workaround was lucky, since the cli ignore previous options in
favor of later options in the command.
What's odd is that I was was able to successful install using this
configuration onto another server a year ago, without needing a
workaround - so I suspect a regression somewhere, somewhat recently.
** Affects: curtin
Importance: Undecided
Status: New
** Description changed:
When attempting to use curtin to install Ubuntu with a BTRFS + luks
root, curtin uses an invalid sector size, causing mkfs.btrfs to exit
with error 1. It appears that mkfs.btrfs is expecting either a value of
4k or 64k, but curtin generates a sector size of 2048 (from
blockdev_sector_size it appears).
- In the Ubuntu installer, specifying extra_options directly, worksaround
+ In the Ubuntu installer, specifying extra_options directly, works around
this issue. For example:
- - id: boot-format
- type: format
- fstype: btrfs
- volume: boot-partition
- extra_options:
- - --sectorsize
- - 4k
+ - id: boot-format
+ type: format
+ fstype: btrfs
+ volume: boot-partition
+ extra_options:
+ - --sectorsize
+ - 4k
This workaround was lucky, since the cli ignore previous options in
favor of later options in the command.
What's odd is that I was was able to successful install using this
configuration onto another server a year ago, without needing a
workaround - so I suspect a regression somewhere, somewhat recently.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/2046669
Title:
BTRFS Incorrect Sector Size
Status in curtin:
New
Bug description:
When attempting to use curtin to install Ubuntu with a BTRFS + luks
root, curtin uses an invalid sector size, causing mkfs.btrfs to exit
with error 1. It appears that mkfs.btrfs is expecting either a value
of 4k or 64k, but curtin generates a sector size of 2048 (from
blockdev_sector_size it appears).
In the Ubuntu installer, specifying extra_options directly, works
around this issue. For example:
- id: boot-format
type: format
fstype: btrfs
volume: boot-partition
extra_options:
- --sectorsize
- 4k
This workaround was lucky, since the cli ignore previous options in
favor of later options in the command.
What's odd is that I was was able to successful install using this
configuration onto another server a year ago, without needing a
workaround - so I suspect a regression somewhere, somewhat recently.
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/2046669/+subscriptions
More information about the foundations-bugs
mailing list