aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/0001-fsck-don-t-add-C0-to-busybox-fsck.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-11-28 17:26:16 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-28 17:50:09 +0100
commit7e49fb6d7a1acceae74c684646afcb58270b2988 (patch)
tree22a63874b5e77c4b348e2089d41e392ad2a7bdf6 /main/openrc/0001-fsck-don-t-add-C0-to-busybox-fsck.patch
parent38e0ed32a8b187bb71d7a6fa4146ac66911c07a8 (diff)
downloadaports-7e49fb6d7a1acceae74c684646afcb58270b2988.tar.gz
aports-7e49fb6d7a1acceae74c684646afcb58270b2988.tar.bz2
aports-7e49fb6d7a1acceae74c684646afcb58270b2988.tar.xz
main/openrc: fix fsck with vfat partitions
busybox fsck does not support -C option so strip it if fsck is busybox.
Diffstat (limited to 'main/openrc/0001-fsck-don-t-add-C0-to-busybox-fsck.patch')
-rw-r--r--main/openrc/0001-fsck-don-t-add-C0-to-busybox-fsck.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/openrc/0001-fsck-don-t-add-C0-to-busybox-fsck.patch b/main/openrc/0001-fsck-don-t-add-C0-to-busybox-fsck.patch
new file mode 100644
index 0000000000..46c2c7bbe6
--- /dev/null
+++ b/main/openrc/0001-fsck-don-t-add-C0-to-busybox-fsck.patch
@@ -0,0 +1,35 @@
+From eb1d69ae84f6d2cb7f081dfca3251b2446a039f0 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 28 Nov 2017 13:35:10 +0100
+Subject: [PATCH] fsck: don't add -C0 to busybox fsck
+
+---
+ init.d/fsck.in | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/init.d/fsck.in b/init.d/fsck.in
+index 7052d808..99a9ae4f 100644
+--- a/init.d/fsck.in
++++ b/init.d/fsck.in
+@@ -82,7 +82,7 @@ start()
+ local skiptypes
+ skiptypes=$(printf 'no%s,' ${net_fs_list} ${extra_net_fs_list})
+ [ "${skiptypes}" = "no," ] && skiptypes=""
+- fsck_opts="$fsck_opts -C0 -T -t ${skiptypes}noopts=_netdev"
++ fsck_opts="$fsck_opts -T -t ${skiptypes}noopts=_netdev"
+ if [ -z "$fsck_passno" -a -z "$fsck_mnt" ]; then
+ fsck_args=${fsck_args:--A -p}
+ if echo 2>/dev/null >/.test.$$; then
+@@ -90,6 +90,9 @@ start()
+ fsck_opts="$fsck_opts -R"
+ fi
+ fi
++ if [ "$(readlink -f $(which fsck))" != "/bin/busybox" ]; then
++ fsck_opts="$fsck_opts -C0"
++ fi
+ fi
+
+ trap : INT QUIT
+--
+2.15.0
+