blob: 68fcc266f710b9cc21d900d99ac10299e0e34357 [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
Denys Vlasenko72089cf2017-07-21 09:50:55 +020018 Enabling this feature allows automatic mounting of files (containing
19 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
Denys Vlasenko72089cf2017-07-21 09:50:55 +020025 You can still use the 'losetup' utility (to manually associate files
26 with loop devices) if you need to do something advanced, such as
27 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
Denys Vlasenko72089cf2017-07-21 09:50:55 +020035 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.
Lauri Kasanen375a8ef2010-04-14 12:31:26 -070038
Denys Vlasenko72089cf2017-07-21 09:50:55 +020039 This feature lets mount to try to create next /dev/loopN device
40 if it does not find a free one.
Lauri Kasanen375a8ef2010-04-14 12:31:26 -070041
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
Denys Vlasenko72089cf2017-07-21 09:50:55 +020048 Historically, Unix systems kept track of the currently mounted
49 partitions in the file "/etc/mtab". These days, the kernel exports
50 the list of currently mounted partitions in "/proc/mounts", rendering
51 the old mtab file obsolete. (In modern systems, /etc/mtab should be
52 a symlink to /proc/mounts.)
Eric Andersena0ac4522003-02-27 03:14:04 +000053
Denys Vlasenko72089cf2017-07-21 09:50:55 +020054 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
59 that your /etc directory be writable, tends to get easily confused
60 by --bind or --move mounts, won't update if you rename a directory
61 that contains a mount point, and so on. (In brief: avoid.)
Rob Landley17507fa2006-05-08 02:22:24 +000062
Denys Vlasenko72089cf2017-07-21 09:50:55 +020063 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