poky/scripts/lib/wic
Florian Bezdeka fce639f1eb wic: Warn if an ext filesystem affected by the Y2038 problem is used
We are getting closer and closer to the year 2038 where the 32 bit
time_t overflow will happen. While products (= embedded systems) with an
expected life time of 15 years are still save the situation may change
if your system has to survive the next 20 years.

ext2 and ext3 filesystems are always affected by the time overflow, so
let's warn the user if these filesystems are still being used.

If ext4 is affected depends on the inode size chosen during filesystem
creation. At least 256 bytes are necessary to be safe. As ext4 is
used very often (and partitions may be created small first and extended
later) this might be an issue for many users.

Some filesystems created during CI runs were already affected by the Y2038
problem. By using `--mkfs-extraopts "-T default"` we tell mke2fs not to
auto-detect the usage type based on the filesystem size. mke2fs will use
the default values for tuning parameters instead. The inode size is one
of these parameters.

(From OE-Core rev: d30283d8090ff21be51433572b7afb542ecea592)

Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit eecbe625558406680121d2a7e84917fea45ea9dc)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-03-10 00:24:26 +00:00
..
canned-wks wic: Warn if an ext filesystem affected by the Y2038 problem is used 2021-03-10 00:24:26 +00:00
plugins wic: debug mode to keep tmp directory 2021-02-26 15:30:39 +00:00
__init__.py wic: python2 -> python3 2019-06-30 22:40:52 +01:00
engine.py wic: use Filesystem UUID when expand swap partition 2020-04-26 14:00:50 +01:00
filemap.py wic/filemap: Fall back to standard copy when no way to get the block map 2020-07-18 11:06:31 +01:00
help.py wic: root: Add an opt. destination on include-path 2020-04-26 14:00:50 +01:00
ksparser.py wic/direct/kparser: ensure fsuuid for vfat and msdos align with format 2021-01-12 14:25:13 +00:00
misc.py wic: Warn if an ext filesystem affected by the Y2038 problem is used 2021-03-10 00:24:26 +00:00
partition.py wic: Warn if an ext filesystem affected by the Y2038 problem is used 2021-03-10 00:24:26 +00:00
pluginbase.py wic: align layer plugin path 2020-04-02 15:24:59 +01:00