Disk image: btrfs root from the config, not --rootfs
Some checks failed
Image, installer ISO, disk image and live ISO / iso (push) Failing after 6m57s

bootc-image-builder panics on --rootfs btrfs with a disk size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Philip Peterson 2026-10-31 01:51:42 -08:00
parent 79457c2a4b
commit 58c1bbf05f
2 changed files with 16 additions and 6 deletions

View file

@ -155,7 +155,7 @@ tasks:
- task: export-to-storage - task: export-to-storage
vars: { IMAGES: "{{.IMAGE}}" } vars: { IMAGES: "{{.IMAGE}}" }
- mkdir -p {{.OUTPUT_DIR}} - mkdir -p {{.OUTPUT_DIR}}
# --rootfs btrfs: what Aurora installs with, as in build-installer-iso. # Root on btrfs, as Aurora installs it: disk/config.toml.
- >- - >-
{{.SUDO}} {{.CONTAINER_RUNTIME}} run --rm --privileged {{.PULL_FLAG}} {{.SUDO}} {{.CONTAINER_RUNTIME}} run --rm --privileged {{.PULL_FLAG}}
--security-opt label=type:unconfined_t --security-opt label=type:unconfined_t
@ -164,7 +164,6 @@ tasks:
-v {{.STORAGE}}:/var/lib/containers/storage -v {{.STORAGE}}:/var/lib/containers/storage
{{.BIB_IMAGE}} {{.BIB_IMAGE}}
--type qcow2 --type qcow2
--rootfs btrfs
localhost/{{.IMAGE}} localhost/{{.IMAGE}}
generates: generates:
- "{{.OUTPUT_DIR}}/qcow2/disk.qcow2" - "{{.OUTPUT_DIR}}/qcow2/disk.qcow2"

View file

@ -1,8 +1,19 @@
# bootc-image-builder's config for the disk image (task build-disk-image). # bootc-image-builder's config for the disk image (task build-disk-image).
# No user: the image has none, so plasma-setup (Aurora's, enabled by # No user: the image has none, so plasma-setup (Aurora's, enabled by
# default) creates the first one at first boot. Only the disk's minimum # default) creates the first one at first boot.
# size (customizations.filesystem isn't supported for disk images); a #
# qcow2 is sparse, so the download is the size of what's written, not 64 # A 64 GiB disk, root on btrfs as Aurora installs it. qcow2 is sparse, so
# GiB. # the download is the size of what's written. The btrfs partition goes here
# rather than in --rootfs: bootc-image-builder panics on --rootfs btrfs
# with a disk size ("unknown fs type: btrfs for /"), and doesn't support
# customizations.filesystem for disk images.
[customizations.disk] [customizations.disk]
minsize = "64 GiB" minsize = "64 GiB"
[[customizations.disk.partitions]]
type = "btrfs"
minsize = "60 GiB"
[[customizations.disk.partitions.subvolumes]]
name = "root"
mountpoint = "/"