Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
nixos/lib/make-ext4-fs: fall back to resize2fs -M if exact resize fails #79368
Workaround to fix resize2fs failures on
Motivation for this change
I'm now questioning the old code path. Shouldn't we prefer always using
If it's because it would end up bigger, it looks like we could run it twice or thrice to get it a bit more snug, but at the expense of performance. Since we're now bzipping the resulting image, it won't affect the hydra build. The main issue we may have is small SD devices and small eMMCs, but that should still be under 4GiB, and certainly far under 8GiB.