kumquat-buildroot/fs
Yann E. MORIN 60474dcec6 fs/ext2: further fix to the UUID
Turned out that setting a nil-UUID is no better than clearing it.

What currently happens is as follows:
  - first, genext2fs does not generate a UUID
  - then we tune2fs to upgrade the filesystem
  - then we run fsck, which generates a random UUID
  - then we re-run tune2fs to set a nil-UUID

So, on the target, if the file system is improperly unmounted (eg.
with a power failure), on next boot, fsck may be run, and a new
random UUID will be generated.

*However*, fsck improperly updates the filesystem when it adds the
UUID, and there are a few group descriptor checksum errors.

Those errors will go undetected until the next fsck, which will then
block for user input (bad on embedded systems, bad).

Fix that by systematically generating a random UUID _before_ we call
to fsck.

A random UUID is not so bad, after all, since there are already so
many sources of unpredictability in the filesystem: files date and
ordering, files content (date, paths...) which renders a fixed UUID
unneeded.

And it is still possible to set the UUID in a post-image script if
needed, anyway.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Peter Korsgaard <jacmet@uclibc.org>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2013-05-29 00:18:37 +02:00
..
cloop fs/common.mk: delay evaluation of variables 2013-01-20 20:53:29 +01:00
cpio fs/common: add support for LZO and XZ compression methods 2013-04-24 22:18:13 +02:00
cramfs fs/common.mk: delay evaluation of variables 2013-01-20 20:53:29 +01:00
ext2 fs/ext2: further fix to the UUID 2013-05-29 00:18:37 +02:00
initramfs cpio/initramfs: clarify their use in the help text 2012-11-07 11:48:13 +01:00
iso9660 iso9660 fs: use cpio initrd instead of ext2 2012-11-14 22:53:25 +01:00
jffs2 fs/jffs2: refactor endianess selection to use BR2_ENDIAN 2013-04-11 15:57:37 +02:00
romfs fs/common.mk: delay evaluation of variables 2013-01-20 20:53:29 +01:00
squashfs fs/common.mk: delay evaluation of variables 2013-01-20 20:53:29 +01:00
tar fs/common: add support for LZO and XZ compression methods 2013-04-24 22:18:13 +02:00
ubifs fs/ubifs: factorize all the "depends on" into "if...endif" blocks 2013-04-25 22:45:46 +02:00
common.mk packages: add ability for packages to create users 2013-04-25 22:56:42 +02:00
Config.in reorder fs alphabetically 2012-12-02 23:19:25 -08:00