diff mbox

[6/6] fs/ext2: remove count- and time-based fsck

Message ID 20da59bb44bf9f9331f343a2c7308b7aaa5cb834.1362693453.git.yann.morin.1998@free.fr
State Changes Requested
Headers show

Commit Message

Yann E. MORIN March 7, 2013, 10:04 p.m. UTC
Set the count- and time-based checks intervals to 0, thus
effectively disabling automatic checks at boot.

(After a suggestion by Arnout.)

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
---
 fs/ext2/genext2fs.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Comments

Arnout Vandecappelle March 12, 2013, 5:46 p.m. UTC | #1
On 03/07/13 23:04, Yann E. MORIN wrote:
> Set the count- and time-based checks intervals to 0, thus
> effectively disabling automatic checks at boot.
>
> (After a suggestion by Arnout.)
>
> Signed-off-by: "Yann E. MORIN"<yann.morin.1998@free.fr>
> Cc: Arnout Vandecappelle<arnout@mind.be>

Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
diff mbox

Patch

diff --git a/fs/ext2/genext2fs.sh b/fs/ext2/genext2fs.sh
index c466bc2..e4177ae 100755
--- a/fs/ext2/genext2fs.sh
+++ b/fs/ext2/genext2fs.sh
@@ -70,8 +70,9 @@  e2tunefsck() {
     esac
     printf "e2fsck was successfully run on rootfs.ext${GEN}\n"
 
-    # e2fsck will force a UUID, which we do not want
-    tune2fs -U clear "${IMG}"
+    # e2fsck will force a UUID, which we do not want;
+    # remove count- and time-based checks
+    tune2fs -U clear -c 0 -i 0 "${IMG}"
 }
 
 # Check we know what generation to generate