diff --git a/fs/ext2/genext2fs.sh b/fs/ext2/genext2fs.sh index f7f8d33ec..7a6e2326f 100755 --- a/fs/ext2/genext2fs.sh +++ b/fs/ext2/genext2fs.sh @@ -70,11 +70,14 @@ e2tunefsck() { "${IMG##*/}" "${GEN}" # e2fsck will force a *random* UUID, which is bad - # for reproducibility, so we do not want it. + # for reproducibility, so we do not want it. Asking + # tune2fs to 'clear' the UUID makes for an invalid + # fs, so we explicitly set a NULL UUID, which works. # Remove count- and time-based checks, they are not welcome # on embedded devices, where they can cause serious boot-time # issues by tremendously slowing down the boot. - tune2fs -U clear -c 0 -i 0 "${IMG}" + tune2fs -U 00000000-0000-0000-0000-000000000000 "${IMG}" + tune2fs -c 0 -i 0 "${IMG}" } # Check we know what generation to generate