Skip to content

Error with btrfs build option #29

Open
@LorandMarton

Description

@LorandMarton

Description

Attempting to build an image with image_rootfs_type=btrfs results in a genimage error stating:
/home/pi/rpi-image-gen/work/testimage/artefacts/genimage.cfg:37: no such option 'btrfs'

Steps to Reproduce

Use the setoptions example as the base configuration.

Add the following option: image_rootfs_type=btrfs

Build process error

Full error log::

Click to expand full error log

[12:29:12] /home/pi/rpi-image-gen/device/pi5[post-build.sh] /home/pi/rpi-image-gen/work/testimage/rootfs
[12:29:12] /home/pi/rpi-image-gen/image/mbr/simple_dual[pre-image.sh] /home/pi/rpi-image-gen/work/testimage/rootfs /home/pi/rpi-image-gen/work/testimage/artefacts
[12:29:13] /home/pi/rpi-image-gen/sbom[gen.sh] /home/pi/rpi-image-gen/work/testimage/rootfs /home/pi/rpi-image-gen/work/testimage/artefacts
[info] checking github for the current release tag
[info] fetching release script for tag='v1.20.0'
[info] checking github for the current release tag
[info] using release tag='v1.20.0' version='1.20.0' os='linux' arch='arm64'
[info] installed /home/pi/rpi-image-gen/work/testimage/host/bin/syft
[12:29:22] SBOM: syft 1.20.0 scanning /home/pi/rpi-image-gen/work/testimage/rootfs
✔ Indexed file system /home/pi/rpi-image-gen/work/testimage/rootfs
✔ Cataloged contents 4919a2773a2bfbc55586b2cfd021b8d3f3cfedf473a4f11df1ada2f8261fecfa ├── ✔ Packages [215 packages]
├── ✔ File digests [9,840 files]
├── ✔ File metadata [9,840 locations]
└── ✔ Executables [1,219 executables]
/home/pi/rpi-image-gen/work/testimage/artefacts/genimage.cfg:37: no such option 'btrfs'
[12:29:50] Error: [podman unshare env IGconf_device_class=pi5 IGconf_device_hostname=pigen IGconf_device_keyboard_keymap=gb IGconf_device_keyboard_layout=English (UK) IGconf_device_locale1=en_GB.UTF-8 IGconf_device_options=defaults IGconf_device_profile=bookworm/apt-min64 IGconf_device_ssh_user1=n IGconf_device_timezone=Europe/London IGconf_device_timezone_area=Europe IGconf_device_timezone_city=London IGconf_device_user1=pi IGconf_device_user1pass=pi IGconf_device_variant=none IGconf_image_boot_part_size=200% IGconf_image_compression=none IGconf_image_layout=mbr/simple_dual IGconf_image_name=testimage IGconf_image_options=defaults IGconf_image_root_part_size=300% IGconf_image_rootfs_type=btrfs IGconf_image_suffix=img IGconf_image_version=2025-03-07 IGconf_sbom_output_format=spdx-json IGconf_ssh_user1=y IGconf_sys_deploydir=/home/pi/rpi-image-gen/work/testimage/deploy IGconf_sys_outputdir=/home/pi/rpi-image-gen/work/testimage/artefacts IGconf_sys_workdir=/home/pi/rpi-image-gen/work/testimage IGDEVICE=/home/pi/rpi-image-gen/device/pi5 IGIMAGE=/home/pi/rpi-image-gen/image/mbr/simple_dual IGPROFILE=/home/pi/rpi-image-gen/profile/bookworm/apt-min64 PATH=/home/pi/rpi-image-gen/bin:/home/pi/rpi-image-gen/work/testimage/host/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games genimage --rootpath /home/pi/rpi-image-gen/work/testimage/rootfs --tmppath /tmp/tmp.iju52ZbU4Q --inputpath /home/pi/rpi-image-gen/work/testimage/artefacts --outputpath /home/pi/rpi-image-gen/work/testimage/artefacts --loglevel=1 --config /home/pi/rpi-image-gen/work/testimage/artefacts/genimage.cfg] (1)
Generating image...0:00:00
[12:29:50] genimage error

Additional Information

The genimage.cfg file:

Click to expand full error log /home/pi/rpi-image-gen/work/testimage/artefacts/genimage.cfg:

image /home/pi/rpi-image-gen/work/testimage/artefacts/testimage.img.sparse {
android-sparse {
image = /home/pi/rpi-image-gen/work/testimage/artefacts/testimage.img
}
}

image /home/pi/rpi-image-gen/work/testimage/artefacts/testimage.img {
hdimage {
partition-table-type = "mbr"
}

partition boot {
in-partition-table = true
partition-type = 0xC
image = boot.vfat
bootable = true
}

partition root {
in-partition-table = true
partition-type = 0x83
image = root.btrfs
}
}

image boot.vfat {
vfat {
label = "BOOT"
extraargs = "-s 4 -S 512 -i 8acc9b45"
}
size = 200%
mountpoint = "/boot/firmware"
exec-pre = "'/home/pi/rpi-image-gen/image/mbr/simple_dual/setup.sh' BOOT 8acc9b45 12ada3d4-bbb9-4148-8391-c316333d2213"
}

image root.btrfs {
btrfs {
label = "ROOT"
extraargs = "-U 12ada3d4-bbb9-4148-8391-c316333d2213"
}
size = 300%
mountpoint = "/"
exec-pre = "'/home/pi/rpi-image-gen/image/mbr/simple_dual/setup.sh' ROOT 8acc9b45 12ada3d4-bbb9-4148-8391-c316333d2213"
}

Question

Is additional configuration required for btrfs build, or should the setup be adjusted in a different way?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions