Using host e2fsprogs brings compatibility issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
New
|
Undecided
|
Unassigned |
Bug Description
I am using ubuntu-image to build arm64 image for Tegra, the target images are for 22.04.
I noticed that when booting my images cloud-init fails to resize the filesystem (I am using classic / pre-installed images).
After investigating the failure, I found out that resize2fs fails because of
/dev/sda2 has unsupported feature(s): FEATURE_C12
e2fsck: Get a newer version of e2fsck!
I remember that some of my previous images used to work, so looking further I realized that the images which don't work are built on a lunar host, and the images which work on a jammy host.
The filesystem generated with lunar have the 'orphan_file' feature enable. However the images is a jammy image which has an older version of e2fsprogs/e2fsck which is why we get the error message above.
See the output of dumpe2fs for the same image, generated either with Jammy or Lunar:
Jammy: Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
Lunar: Filesystem features: has_journal ext_attr resize_inode dir_index orphan_file filetype extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum
I think we want to make sure that ubuntu-image generates the filesystem with flags/features which are compatible with the target release of Ubuntu.