mount: make -f work even without mtab support
(Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>)
diff --git a/util-linux/Config.in b/util-linux/Config.in
index d1688e8..5a47318 100644
--- a/util-linux/Config.in
+++ b/util-linux/Config.in
@@ -386,6 +386,13 @@
NFS filesystems. Most people using BusyBox will also want to enable
the 'mount' utility.
+config FEATURE_MOUNT_FAKE
+ bool "mount -f option"
+ default n
+ depends on MOUNT
+ help
+ Enable support for faking a file system mount.
+
config FEATURE_MOUNT_HELPERS
bool "Support mount helpers"
default n
@@ -542,6 +549,7 @@
bool "Support for the old /etc/mtab file"
default n
depends on MOUNT || UMOUNT
+ select FEATURE_MOUNT_FAKE
help
Historically, Unix systems kept track of the currently mounted
partitions in the file "/etc/mtab". These days, the kernel exports