diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-12-17 11:01:34 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2014-12-17 11:16:09 +0100 |
commit | c79d10713ddc8384b8933570461b036d778e2532 (patch) | |
tree | 1f15c8522489d501e77ebb9019cb8b036a187a58 | |
parent | f6a0254280f905978ac635d58eb18e71e947daf2 (diff) |
e2fsck: don't check last mounttime on superblock
This avoids fsck execution.
systemd-fsck[169]: arm: Superblock last write time (Tue Dec 16 15:46:16 2014,
systemd-fsck[169]: now = Mon Nov 17 11:08:57 2014) is in the future.
Depending on the system we might not have a sensible time. On top of that, during
first boot we compare the fs creation time of the PC with the intial embedded
time which very likely triggers the fsck.
-rw-r--r-- | recipes-devtools/e2fsprogs/e2fsprogs/e2fsck.conf | 2 | ||||
-rw-r--r-- | recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/recipes-devtools/e2fsprogs/e2fsprogs/e2fsck.conf b/recipes-devtools/e2fsprogs/e2fsprogs/e2fsck.conf new file mode 100644 index 0000000..2bce8a7 --- /dev/null +++ b/recipes-devtools/e2fsprogs/e2fsprogs/e2fsck.conf @@ -0,0 +1,2 @@ +[options] +broken_system_clock = true diff --git a/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend b/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend new file mode 100644 index 0000000..e767c2a --- /dev/null +++ b/recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI += "file://e2fsck.conf" + +do_install_append() { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/e2fsck.conf ${D}${sysconfdir}/e2fsck.conf +} + +FILES_e2fsprogs-e2fsck += "${sysconfdir}/e2fsck.conf" |