Comment 3 for bug 1864992

Revision history for this message
Ryan Harper (raharper) wrote :

Yes, I can see the error message in our FocalTestBasic.

The bug you mentioned specifies calls to update-initramfs, in curtin we're now diverting this binary, so it cannot be calls to update-initramfs. Instead looking at the patch in the bug you mention, it's /usr/sbin/mkinitramfs; which I suspect is being invoked *directly* in the package postinst.

I suspect curtin could divert this as well, however; it's not clear why we should do that; it appears to be an error within the package.

In focal, we have:

root@f1:~# apt-cache policy initramfs-tools-core
initramfs-tools-core:
  Installed: 0.133ubuntu14
  Candidate: 0.136ubuntu1
  Version table:
     0.136ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
 *** 0.133ubuntu14 100
        100 /var/lib/dpkg/status

However, the focal package does not have the change mentioned.

# grep -A1 -B1 "for x in modules" /usr/sbin/mkinitramfs
# Copy in modules.builtin and modules.order (not generated by depmod)
for x in modules.builtin modules.order; do
 if [ -f "${MODULESDIR}/${x}" ]; then

Vs. the fix:

+# and modules.builtin.bin (generated by depmod, but too late to avoid
+# error messages as in #948257)
+for x in modules.builtin modules.builtin.bin modules.order; do