Package: autopkgtest
Version: 5.39
Severity: normal
Tags: patch

Hi,

It appears that running autopkgtest-build-qemu on a sid system produces
unbootable images for bullseye LTS and older suites.

AFAICT that's because autopkgtest-build-qemu creates the guest's root
filestem using the host's mkfs.ext4(8), which by default enables the
‘orphan_file’ feature since e2fsprogs 1.47.0.  That feature was added to
linux v5.15, so trying to use such an ext4 FS from an older kernel fails
with

    /dev/vda1 has unsupported feature(s): FEATURE_C12

The attached trivial patch simply turns off ‘orphan_file’ when creating
the root file system for older target suites.  Tested for jessie to
bullseye, but I suppose this could be useful for Ubuntu as well.

This is a no-op for bookworm or later targets.

Thanks for maintaining autopkgtest!
-- 
Guilhem.
--- a/autopkgtest-build-qemu
+++ b/autopkgtest-build-qemu
@@ -539,6 +539,8 @@
             mkfs["options"] = "-O ^large_dir,^metadata_csum_seed"
             if release in ('trusty', 'jessie'):
                 mkfs["options"] += ",^metadata_csum"
+            if release in ('jessie', 'stretch', 'buster', 'bullseye'):
+                mkfs["options"] += ",^orphan_file"
         steps.append(mkfs)
         steps.append(dict(mount='root'))
 

Attachment: signature.asc
Description: PGP signature

Reply via email to