blob: 86676e5ad7c9d2615bea6ba50218cee507d6d301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
From d1cb63729cb64cd3aebb14f00eaa8f03b90a57fe Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Wed, 9 Mar 2011 18:07:39 +0000
Subject: [PATCH] fsck: add -C0 and -T options unless fsck is busybox
---
init.d/fsck.in | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/init.d/fsck.in b/init.d/fsck.in
index de44ea8..3b55fbd 100644
--- a/init.d/fsck.in
+++ b/init.d/fsck.in
@@ -30,6 +30,10 @@ _forcefsck()
[ -e /forcefsck ] || get_bootparam forcefsck
}
+_fsck_is_busybox() {
+ [ -L /sbin/fsck ] && [ "$(readlink -f /sbin/fsck)" = "/bin/busybox" ]
+}
+
start()
{
local fsck_opts= p= check_extra=
@@ -60,7 +64,9 @@ start()
done
if [ "$RC_UNAME" = Linux ]; then
- fsck_opts="$fsck_opts -C0 -T"
+ if ! _fsck_is_busybox; then
+ fsck_opts="$fsck_opts -C0 -T"
+ fi
if [ -z "$fsck_passno" ]; then
fsck_args=${fsck_args--A -p}
if echo 2>/dev/null >/.test.$$; then
--
1.7.4.1
|