Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 1 | # |
| 2 | # For a description of the syntax of this configuration file, |
Kartik Agaram | 43b17b1 | 2018-05-31 22:15:55 -0700 | [diff] [blame] | 3 | # see docs/Kconfig-language.txt. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 4 | # |
| 5 | |
| 6 | menu "Linux System Utilities" |
| 7 | |
Denys Vlasenko | d70e0e9 | 2010-06-08 12:15:11 +0200 | [diff] [blame] | 8 | INSERT |
| 9 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 10 | comment "Common options for mount/umount" |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 11 | depends on MOUNT || UMOUNT |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 12 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 13 | config FEATURE_MOUNT_LOOP |
Rob Landley | 2ec922e | 2006-04-13 23:22:16 +0000 | [diff] [blame] | 14 | bool "Support loopback mounts" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 15 | default y |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 16 | depends on MOUNT || UMOUNT |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 17 | help |
Denys Vlasenko | 72089cf | 2017-07-21 09:50:55 +0200 | [diff] [blame] | 18 | 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 Riker | c1ef7bd | 2006-01-25 00:08:53 +0000 | [diff] [blame] | 24 | |
Denys Vlasenko | 72089cf | 2017-07-21 09:50:55 +0200 | [diff] [blame] | 25 | 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 Fox | 3f6f317 | 2005-07-19 20:55:37 +0000 | [diff] [blame] | 29 | |
Lauri Kasanen | 375a8ef | 2010-04-14 12:31:26 -0700 | [diff] [blame] | 30 | config FEATURE_MOUNT_LOOP_CREATE |
| 31 | bool "Create new loopback devices if needed" |
Denys Vlasenko | 2f32bf8 | 2010-06-06 04:14:28 +0200 | [diff] [blame] | 32 | default y |
Lauri Kasanen | 375a8ef | 2010-04-14 12:31:26 -0700 | [diff] [blame] | 33 | depends on FEATURE_MOUNT_LOOP |
| 34 | help |
Denys Vlasenko | 72089cf | 2017-07-21 09:50:55 +0200 | [diff] [blame] | 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. |
Lauri Kasanen | 375a8ef | 2010-04-14 12:31:26 -0700 | [diff] [blame] | 38 | |
Denys Vlasenko | 72089cf | 2017-07-21 09:50:55 +0200 | [diff] [blame] | 39 | This feature lets mount to try to create next /dev/loopN device |
| 40 | if it does not find a free one. |
Lauri Kasanen | 375a8ef | 2010-04-14 12:31:26 -0700 | [diff] [blame] | 41 | |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 42 | config FEATURE_MTAB_SUPPORT |
Denys Vlasenko | f560422 | 2017-01-10 14:58:54 +0100 | [diff] [blame] | 43 | bool "Support old /etc/mtab file" |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 44 | default n |
Denis Vlasenko | 7d219aa | 2006-10-05 10:17:08 +0000 | [diff] [blame] | 45 | depends on MOUNT || UMOUNT |
Denis Vlasenko | b1d8e7d | 2008-02-16 23:28:42 +0000 | [diff] [blame] | 46 | select FEATURE_MOUNT_FAKE |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 47 | help |
Denys Vlasenko | 72089cf | 2017-07-21 09:50:55 +0200 | [diff] [blame] | 48 | 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 Andersen | a0ac452 | 2003-02-27 03:14:04 +0000 | [diff] [blame] | 53 | |
Denys Vlasenko | 72089cf | 2017-07-21 09:50:55 +0200 | [diff] [blame] | 54 | 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 Landley | 17507fa | 2006-05-08 02:22:24 +0000 | [diff] [blame] | 62 | |
Denys Vlasenko | 72089cf | 2017-07-21 09:50:55 +0200 | [diff] [blame] | 63 | About the only reason to use this is if you've removed /proc from |
| 64 | your kernel. |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 65 | |
Sven-Göran Bergh | 15d0a86 | 2013-07-31 15:57:59 +0200 | [diff] [blame] | 66 | source util-linux/volume_id/Config.in |
Denys Vlasenko | 0e45066 | 2010-07-14 07:10:47 +0200 | [diff] [blame] | 67 | |
Eric Andersen | c9f20d9 | 2002-12-05 08:41:41 +0000 | [diff] [blame] | 68 | endmenu |