-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Description
I'm trying to run an image which installs the niri window manager using dnf. If I run the image, the following error is displayed:
Initializing ostree layout
layers already present: 0; layers needed: 67 (2.7 GB)
Fetched layers: 1.75 GiB in 53 seconds (33.66 MiB/s)
error: Installing to disk: Creating ostree deployment: Pulling: Importing: Parsing layer blob sha256:bca474d3818b08a3e6e8579bc5f0c7efbeee431c1aa1c80c9f5c56b1b8f799cd: error: Pathname can't be converted from UTF-8 to current locale.: Processing tar: Failed to commit tar: ExitStatus(unix_wait_status(256))
Error: unable to install bootc image: failed to create disk image: failed to invoke install: exit status 1
This only happens with the niri package. If I remove it, the image runs correctly.
The internet suggests that it could be a locale mismatch. I'm not so sure where I could change that though, as the podman machine is read-only.
Is this an issue with podman-bootc or another issue somewhere else? Does anyone have an idea how I could debug this further?
Reproduction
I'm trying this on a new install of Fedora Silverblue 42.20251018.0.
cat > Containerfile <<EOF
FROM quay.io/fedora/fedora-bootc:42
RUN dnf -y install NetworkManager openssh-server niri && \
rm /var/{log,cache,lib}/* -rf
RUN bootc container lint
LABEL containers.bootc 1
LABEL ostree.bootable 1
ENV container=oci
EOF
podman -c podman-machine-default-root build --cap-add=all --security-opt=label=type:container_runtime_t --device /dev/fuse -t bootc-niri:latest ./
podman-bootc run --filesystem=xfs localhost/bootc-niri:latestOutput:
Executing `bootc install to-disk` from container image localhost/bootc-niri:latest to create disk image
Installing image: docker://localhost/bootc-niri:latest
Digest: sha256:24efdcf98f1328157231ce4804fb8125aa8e3463dbe5f5dd07a8b313fda8d3a0
Block setup: direct
Size: 10737418240
Serial: <unknown>
Model: <unknown>
Checking that no-one is using this disk right now ... OK
Disk /dev/loop0: 10 GiB, 10737418240 bytes, 20971520 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new GPT disklabel (GUID: FE9A0159-CFEF-45D9-A37B-3FA429A7FAA1).
/dev/loop0p1: Created a new partition 1 of type 'BIOS boot' and of size 1 MiB.
/dev/loop0p2: Created a new partition 2 of type 'EFI System' and of size 512 MiB.
/dev/loop0p3: Created a new partition 3 of type 'Linux filesystem' and of size 9.5 GiB.
/dev/loop0p4: Done.
New situation:
Disklabel type: gpt
Disk identifier: FE9A0159-CFEF-45D9-A37B-3FA429A7FAA1
Device Start End Sectors Size Type
/dev/loop0p1 2048 4095 2048 1M BIOS boot
/dev/loop0p2 4096 1052671 1048576 512M EFI System
/dev/loop0p3 1052672 20969471 19916800 9.5G Linux filesystem
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
Creating root filesystem (xfs) on device /dev/loop0p3 (size=10.2 GB)
> mkfs.xfs -m uuid=838865dc-e102-4b40-8f02-9dac0e91f231 -L root /dev/loop0p3
Creating ESP filesystem
> mkfs.fat /dev/loop0p2 -n EFI-SYSTEM
Initializing ostree layout
layers already present: 0; layers needed: 67 (2.7 GB)
Fetched layers: 1.75 GiB in 31 seconds (57.13 MiB/s) error: Installing to disk: Creating ostree deployment: Pulling: Importing: Parsing layer blob sha256:bca474d3818b08a3e6e8579bc5f0c7efbeee431c1aa1c80c9f5c56b1b8f799cd: error: Pathname can't be converted from UTF-8 to current locale.: Processing tar: Failed to commit tar: ExitStatus(unix_wait_status(256))
Error: unable to install bootc image: failed to create disk image: failed to invoke install: exit status 1
Metadata
Metadata
Assignees
Labels
No labels