mount: make -f work even without mtab support

(Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn at axis.com>)
This commit is contained in:
Denis Vlasenko
2008-02-16 23:28:42 +00:00
parent 25591c322c
commit b1d8e7db0f
4 changed files with 46 additions and 21 deletions

View File

@@ -386,6 +386,13 @@ config MOUNT
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 @@ config FEATURE_MTAB_SUPPORT
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