From f9597209fa87a9eea30d34448d993fdf82d4be61 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 17 Dec 2014 11:01:34 +0100 Subject: 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. --- recipes-devtools/e2fsprogs/e2fsprogs/e2fsck.conf | 2 ++ recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 recipes-devtools/e2fsprogs/e2fsprogs/e2fsck.conf create mode 100644 recipes-devtools/e2fsprogs/e2fsprogs_%.bbappend 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" -- cgit v1.2.3