diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2017-03-24 12:15:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-26 13:17:03 +0100 |
commit | a93d005934192402d7cceb36016b25b7d0c65547 (patch) | |
tree | 17767de310103b00a4ff96c753d5b80a75e6b0c9 /meta/lib/oeqa | |
parent | 3f1996cb016713295edf35edc32dd5e84888a5c7 (diff) | |
download | openembedded-core-a93d005934192402d7cceb36016b25b7d0c65547.tar.gz openembedded-core-a93d005934192402d7cceb36016b25b7d0c65547.tar.bz2 openembedded-core-a93d005934192402d7cceb36016b25b7d0c65547.zip |
image_types: perform fsck on created ext image
When performing a file system check, the image created with mkfs will
trigger Pass 3A ('Optimizing directories') which turns the file system
into state "changed" (EXT2_FLAG_CHANGED).
This will let fsck request a reboot by setting the return code flag "2".
The result of this is that each ext-image built with oe-core will
trigger a reboot during the first time an fsck is triggered.
A common case where this might occur is when fsck detects having
a future superblock write time. This always happens when booting a
newly created ext4 rootfs with a target that does not have a recent time
set.
This patch moves the initial fsck run that performs the optimization
from the target to the host system and thus prevents the target from
performing an avoidable reboot.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Ulrich Ölmann <uol@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
0 files changed, 0 insertions, 0 deletions