debirf 0.35 fails to pack rootfs when ca-certificates is installed

Bug #1833825 reported by Bob Shannon on 2019-06-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
debirf (Ubuntu)
Undecided
Unassigned

Bug Description

When using debirf 0.35 to create an Xenial image, debirf fails to pack the rootfs with the error below:

   image-builder: debirf> modules complete
   image-builder: debirf> creating debirf initrd ('nested')...
   image-builder: debirf> creating rootfs.cgz...
   image-builder: cpio:
   image-builder: Binary file (standard input) matches: Cannot stat
   image-builder: : No such file or directory
   image-builder: 35123 blocks

The "binary file matches" error comes from grep in pack_rootfs():

pack_rootfs() {
    # need to pack archive in fakechroot/chroot so that symlinks correctly
    # point within debirf root, instead of to host path

    # abort with a failure if our attempts to build the rootfs fail:
    set -o pipefail
    fakeroot_if_needed bash -c ". $DEBIRF_COMMON && FAKECHROOT_EXCLUDE_PATH=/does-not-exist debirf_exec sh -c 'find * |
 grep -v -e ^run/ | cpio --create -H newc'" | gzip -9 > "$1"
}

After further investigation, this appears to be an unexpected interaction with the ca-certificates package or files in /usr/share/ca-certificates. If the ca-certificates package is purged, then debirf successfully packs the rootfs.

description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers