Public bug reported:

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.

** Affects: debirf (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

- ```
- When using debirf 0.35 to create an Xenial image, debirf fails to pack the 
rootfs with the error below:
+ 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
+    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
+     # 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"
+     # 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.
- ```
+ 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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1833825

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debirf/+bug/1833825/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to