bottlerocket-os/twoliter

create the boot filesystem with known-good options

Ouverte

#498 ouverte le 5 mars 2023

 (4 commentaires) (0 réaction) (0 personne assignée)Rust (43 forks)auto 404
good first issue

Métriques du dépôt

Stars
 (34 étoiles)
Métriques de merge PR
 (Merge moyen 4j 18h) (19 PRs mergées en 30 j)

Description

What I'd like: LWN recently covered filesystem forward-compatibility in Debian which related to an issue with e2fsprogs 1.47.0 turning the metadata_csum_seed option on by default, leading to boot failures since existing releases of GRUB cannot handle the option.

In the comments, "mb" suggests prefixing a list of known-good options with -O none to avoid unexpectedly introducing new filesystem features. Since GRUB only reads the /boot filesystem, that is the only place where the change would be needed.

The current list of features reported by tune2fs -l /dev/nvme0n1p3 is:

ext_attr resize_inode dir_index filetype extent 64bit flex_bg sparse_super large_file huge_file dir_nlink extra_isize metadata_csum

Any alternatives you've considered: Another approach would be to exercise more direct control over the version of e2fsprogs and mkfs.ext4 used, or carrying a known-good /etc/mke2fs.conf with the current options enumerated. However, that would be more likely to freeze the software or the option set used for all created ext4 filesystems, when it's really just the /boot filesystem that is exposed to this failure mode.

Guide contributeur