blob: 0971d714a1a3ff8a838f79377441c56f6f2335a6 [file] [log] [blame]
Eric Andersenc9f20d92002-12-05 08:41:41 +00001#
2# For a description of the syntax of this configuration file,
3# see scripts/kbuild/config-language.txt.
4#
5
6menu "Linux System Utilities"
7
Denys Vlasenkod70e0e92010-06-08 12:15:11 +02008INSERT
9
Eric Andersenc9f20d92002-12-05 08:41:41 +000010comment "Common options for mount/umount"
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000011 depends on MOUNT || UMOUNT
Eric Andersenc9f20d92002-12-05 08:41:41 +000012
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000013config FEATURE_MOUNT_LOOP
Rob Landley2ec922e2006-04-13 23:22:16 +000014 bool "Support loopback mounts"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020015 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000016 depends on MOUNT || UMOUNT
Eric Andersenc9f20d92002-12-05 08:41:41 +000017 help
Rob Landley6a6798b2005-08-10 20:35:54 +000018 Enabling this feature allows automatic mounting of files (containing
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000019 filesystem images) via the linux kernel's loopback devices.
20 The mount command will detect you are trying to mount a file instead
21 of a block device, and transparently associate the file with a
22 loopback device. The umount command will also free that loopback
23 device.
Tim Rikerc1ef7bd2006-01-25 00:08:53 +000024
Rob Landley6a6798b2005-08-10 20:35:54 +000025 You can still use the 'losetup' utility (to manually associate files
Mike Frysinger71a6a4e2007-01-24 08:24:43 +000026 with loop devices) if you need to do something advanced, such as
Rob Landley6a6798b2005-08-10 20:35:54 +000027 specify an offset or cryptographic options to the loopback device.
28 (If you don't want umount to free the loop device, use "umount -D".)
Paul Fox3f6f3172005-07-19 20:55:37 +000029
Lauri Kasanen375a8ef2010-04-14 12:31:26 -070030config FEATURE_MOUNT_LOOP_CREATE
31 bool "Create new loopback devices if needed"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020032 default y
Lauri Kasanen375a8ef2010-04-14 12:31:26 -070033 depends on FEATURE_MOUNT_LOOP
34 help
35 Linux kernels >= 2.6.24 support unlimited loopback devices. They are
36 allocated for use when trying to use a loop device. The loop device
37 must however exist.
38
39 This feature lets mount to try to create next /dev/loopN device
40 if it does not find a free one.
41
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000042config FEATURE_MTAB_SUPPORT
Denys Vlasenkof5604222017-01-10 14:58:54 +010043 bool "Support old /etc/mtab file"
Eric Andersenc9f20d92002-12-05 08:41:41 +000044 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000045 depends on MOUNT || UMOUNT
Denis Vlasenkob1d8e7d2008-02-16 23:28:42 +000046 select FEATURE_MOUNT_FAKE
Eric Andersenc9f20d92002-12-05 08:41:41 +000047 help
Rob Landley6a6798b2005-08-10 20:35:54 +000048 Historically, Unix systems kept track of the currently mounted
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000049 partitions in the file "/etc/mtab". These days, the kernel exports
Rob Landley6a6798b2005-08-10 20:35:54 +000050 the list of currently mounted partitions in "/proc/mounts", rendering
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000051 the old mtab file obsolete. (In modern systems, /etc/mtab should be
Rob Landley6a6798b2005-08-10 20:35:54 +000052 a symlink to /proc/mounts.)
Eric Andersena0ac4522003-02-27 03:14:04 +000053
Rob Landley6a6798b2005-08-10 20:35:54 +000054 The only reason to have mount maintain an /etc/mtab file itself is if
55 your stripped-down embedded system does not have a /proc directory.
56 If you must use this, keep in mind it's inherently brittle (for
57 example a mount under chroot won't update it), can't handle modern
58 features like separate per-process filesystem namespaces, requires
Dan Fandricheafc6952010-06-17 23:30:27 -070059 that your /etc directory be writable, tends to get easily confused
Rob Landley17507fa2006-05-08 02:22:24 +000060 by --bind or --move mounts, won't update if you rename a directory
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000061 that contains a mount point, and so on. (In brief: avoid.)
Rob Landley17507fa2006-05-08 02:22:24 +000062
63 About the only reason to use this is if you've removed /proc from
64 your kernel.
Eric Andersenc9f20d92002-12-05 08:41:41 +000065
Sven-Göran Bergh15d0a862013-07-31 15:57:59 +020066source util-linux/volume_id/Config.in
Denys Vlasenko0e450662010-07-14 07:10:47 +020067
Eric Andersenc9f20d92002-12-05 08:41:41 +000068endmenu