blob: 9af923ec4535926009b001a7395802d653d4a416 [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
Denis Vlasenkod16950d2008-11-29 09:05:50 +000010config ACPID
11 bool "acpid"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020012 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010013 select PLATFORM_LINUX
Denis Vlasenkod16950d2008-11-29 09:05:50 +000014 help
15 acpid listens to ACPI events coming either in textual form from
16 /proc/acpi/event (though it is marked deprecated it is still widely
17 used and _is_ a standard) or in binary form from specified evdevs
18 (just use /dev/input/event*).
19
20 It parses the event to retrieve ACTION and a possible PARAMETER.
21 It then spawns /etc/acpi/<ACTION>[/<PARAMETER>] either via run-parts
22 (if the resulting path is a directory) or directly as an executable.
23
24 N.B. acpid relies on run-parts so have the latter installed.
25
26config FEATURE_ACPID_COMPAT
27 bool "Accept and ignore redundant options"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020028 default y
Denis Vlasenkod16950d2008-11-29 09:05:50 +000029 depends on ACPID
30 help
31 Accept and ignore compatibility options -g -m -s -S -v.
32
Denis Vlasenko1e19afd2008-10-12 11:20:08 +000033config BLKID
34 bool "blkid"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020035 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010036 select PLATFORM_LINUX
Denis Vlasenko1e19afd2008-10-12 11:20:08 +000037 select VOLUMEID
38 help
39 Lists labels and UUIDs of all filesystems.
40 WARNING:
41 With all submodules selected, it will add ~8k to busybox.
42
Denys Vlasenko90615a02010-12-30 00:40:11 +010043config FEATURE_BLKID_TYPE
44 bool "Print filesystem type"
45 default n
46 depends on BLKID
47 help
48 Show TYPE="filesystem type"
49
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000050config DMESG
Eric Andersenc9f20d92002-12-05 08:41:41 +000051 bool "dmesg"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020052 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010053 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +000054 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000055 dmesg is used to examine or control the kernel ring buffer. When the
Eric Andersena0ac4522003-02-27 03:14:04 +000056 Linux kernel prints messages to the system log, they are stored in
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000057 the kernel ring buffer. You can use dmesg to print the kernel's ring
Eric Andersena0ac4522003-02-27 03:14:04 +000058 buffer, clear the kernel ring buffer, change the size of the kernel
59 ring buffer, and change the priority level at which kernel messages
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000060 are also logged to the system console. Enable this option if you
Eric Andersena0ac4522003-02-27 03:14:04 +000061 wish to enable the 'dmesg' utility.
Eric Andersenc9f20d92002-12-05 08:41:41 +000062
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000063config FEATURE_DMESG_PRETTY
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +000064 bool "Pretty dmesg output"
Rob Landley446129a2006-07-27 16:40:55 +000065 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000066 depends on DMESG
Rob Landley446129a2006-07-27 16:40:55 +000067 help
68 If you wish to scrub the syslog level from the output, say 'Y' here.
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000069 The syslog level is a string prefixed to every line with the form
70 "<#>".
Rob Landley446129a2006-07-27 16:40:55 +000071
72 With this option you will see:
73 # dmesg
74 Linux version 2.6.17.4 .....
75 BIOS-provided physical RAM map:
76 BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
77
Tanguy Pruvota0c20e42012-01-06 16:40:09 +010078 Without this option (or with -r) you will see:
Rob Landley446129a2006-07-27 16:40:55 +000079 # dmesg
80 <5>Linux version 2.6.17.4 .....
81 <6>BIOS-provided physical RAM map:
82 <6> BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
83
maxwen27116ba2015-08-14 21:41:28 +020084config FEATURE_DMESG_COLOR
85 bool "Colored dmesg output"
86 default y
87 depends on DMESG
88 help
89 Allow to show errors and warnings in different colors
90 dmesg -C
91
Denis Vlasenko7d219aa2006-10-05 10:17:08 +000092config FBSET
Eric Andersenc9f20d92002-12-05 08:41:41 +000093 bool "fbset"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +020094 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +010095 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +000096 help
Eric Andersena0ac4522003-02-27 03:14:04 +000097 fbset is used to show or change the settings of a Linux frame buffer
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +000098 device. The frame buffer device provides a simple and unique
99 interface to access a graphics display. Enable this option
Eric Andersen88c916b2003-10-22 09:58:56 +0000100 if you wish to enable the 'fbset' utility.
Eric Andersena0ac4522003-02-27 03:14:04 +0000101
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000102config FEATURE_FBSET_FANCY
Rob Landley2ec922e2006-04-13 23:22:16 +0000103 bool "Turn on extra fbset options"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200104 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000105 depends on FBSET
Eric Andersenc9f20d92002-12-05 08:41:41 +0000106 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000107 This option enables extended fbset options, allowing one to set the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000108 framebuffer size, color depth, etc. interface to access a graphics
109 display. Enable this option if you wish to enable extended fbset
Eric Andersena0ac4522003-02-27 03:14:04 +0000110 options.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000111
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000112config FEATURE_FBSET_READMODE
Rob Landley2ec922e2006-04-13 23:22:16 +0000113 bool "Turn on fbset readmode support"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200114 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000115 depends on FBSET
Eric Andersenc9f20d92002-12-05 08:41:41 +0000116 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000117 This option allows fbset to read the video mode database stored by
118 default as /etc/fb.modes, which can be used to set frame buffer
119 device to pre-defined video modes.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000120
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000121config FDFLUSH
Eric Andersenc9f20d92002-12-05 08:41:41 +0000122 bool "fdflush"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200123 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100124 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000125 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000126 fdflush is only needed when changing media on slightly-broken
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000127 removable media drives. It is used to make Linux believe that a
Eric Andersena0ac4522003-02-27 03:14:04 +0000128 hardware disk-change switch has been actuated, which causes Linux to
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000129 forget anything it has cached from the previous media. If you have
Eric Andersena0ac4522003-02-27 03:14:04 +0000130 such a slightly-broken drive, you will need to run fdflush every time
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000131 you change a disk. Most people have working hardware and can safely
Eric Andersen88c916b2003-10-22 09:58:56 +0000132 leave this disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000133
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000134config FDFORMAT
Eric Andersen01c3d402003-07-05 07:51:31 +0000135 bool "fdformat"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200136 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100137 select PLATFORM_LINUX
Eric Andersen01c3d402003-07-05 07:51:31 +0000138 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000139 fdformat is used to low-level format a floppy disk.
Eric Andersen01c3d402003-07-05 07:51:31 +0000140
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000141config FDISK
Eric Andersenc9f20d92002-12-05 08:41:41 +0000142 bool "fdisk"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200143 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100144 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000145 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000146 The fdisk utility is used to divide hard disks into one or more
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000147 logical disks, which are generally called partitions. This utility
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000148 can be used to list and edit the set of partitions or BSD style
Eric Andersena0ac4522003-02-27 03:14:04 +0000149 'disk slices' that are defined on a hard drive.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000150
Eric Andersen84bdea82004-05-19 10:49:17 +0000151config FDISK_SUPPORT_LARGE_DISKS
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000152 bool "Support over 4GB disks"
Eric Andersen84bdea82004-05-19 10:49:17 +0000153 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000154 depends on FDISK
Denys Vlasenko8c498b62011-04-16 18:07:35 +0200155 depends on !LFS # with LFS no special code is needed
Eric Andersen84bdea82004-05-19 10:49:17 +0000156 help
157 Enable this option to support large disks > 4GB.
158
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000159config FEATURE_FDISK_WRITABLE
Rob Landley2ec922e2006-04-13 23:22:16 +0000160 bool "Write support"
Glenn L McGrath4dcc2dd2003-01-04 11:56:06 +0000161 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000162 depends on FDISK
Glenn L McGrath4dcc2dd2003-01-04 11:56:06 +0000163 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000164 Enabling this option allows you to create or change a partition table
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000165 and write those changes out to disk. If you leave this option
Eric Andersena0ac4522003-02-27 03:14:04 +0000166 disabled, you will only be able to view the partition table.
Glenn L McGrath4dcc2dd2003-01-04 11:56:06 +0000167
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000168config FEATURE_AIX_LABEL
Rob Landley2ec922e2006-04-13 23:22:16 +0000169 bool "Support AIX disklabels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000170 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000171 depends on FDISK && FEATURE_FDISK_WRITABLE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000172 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000173 Enabling this option allows you to create or change AIX disklabels.
174 Most people can safely leave this option disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000175
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000176config FEATURE_SGI_LABEL
Rob Landley2ec922e2006-04-13 23:22:16 +0000177 bool "Support SGI disklabels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000178 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000179 depends on FDISK && FEATURE_FDISK_WRITABLE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000180 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000181 Enabling this option allows you to create or change SGI disklabels.
182 Most people can safely leave this option disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000183
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000184config FEATURE_SUN_LABEL
Rob Landley2ec922e2006-04-13 23:22:16 +0000185 bool "Support SUN disklabels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000186 default n
Mike Frysinger71a6a4e2007-01-24 08:24:43 +0000187 depends on FDISK && FEATURE_FDISK_WRITABLE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000188 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000189 Enabling this option allows you to create or change SUN disklabels.
190 Most people can safely leave this option disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000191
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000192config FEATURE_OSF_LABEL
Rob Landley2ec922e2006-04-13 23:22:16 +0000193 bool "Support BSD disklabels"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000194 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000195 depends on FDISK && FEATURE_FDISK_WRITABLE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000196 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000197 Enabling this option allows you to create or change BSD disklabels
198 and define and edit BSD disk slices.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000199
Kevin Cernekeeccb07042010-10-25 02:00:24 +0200200config FEATURE_GPT_LABEL
201 bool "Support GPT disklabels"
202 default n
203 depends on FDISK && FEATURE_FDISK_WRITABLE
204 help
205 Enabling this option allows you to view GUID Partition Table
206 disklabels.
207
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000208config FEATURE_FDISK_ADVANCED
Rob Landley2ec922e2006-04-13 23:22:16 +0000209 bool "Support expert mode"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200210 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000211 depends on FDISK && FEATURE_FDISK_WRITABLE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000212 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000213 Enabling this option allows you to do terribly unsafe things like
214 define arbitrary drive geometry, move the beginning of data in a
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000215 partition, and similarly evil things. Unless you have a very good
Eric Andersena0ac4522003-02-27 03:14:04 +0000216 reason you would be wise to leave this disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000217
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000218config FINDFS
219 bool "findfs"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200220 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100221 select PLATFORM_LINUX
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000222 select VOLUMEID
223 help
Denis Vlasenko22d10a02008-10-13 08:53:43 +0000224 Prints the name of a filesystem with given label or UUID.
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000225 WARNING:
Denis Vlasenkod25c33f2008-03-17 09:25:05 +0000226 With all submodules selected, it will add ~8k to busybox.
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000227
Timo Teras892d4b62010-03-18 22:45:35 +0100228config FLOCK
229 bool "flock"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200230 default y
Timo Teras892d4b62010-03-18 22:45:35 +0100231 help
232 Manage locks from shell scripts
233
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000234config FREERAMDISK
Eric Andersenc9f20d92002-12-05 08:41:41 +0000235 bool "freeramdisk"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200236 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100237 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000238 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000239 Linux allows you to create ramdisks. This utility allows you to
Eric Andersena0ac4522003-02-27 03:14:04 +0000240 delete them and completely free all memory that was used for the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000241 ramdisk. For example, if you boot Linux into a ramdisk and later
Eric Andersena0ac4522003-02-27 03:14:04 +0000242 pivot_root, you may want to free the memory that is allocated to the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000243 ramdisk. If you have no use for freeing memory from a ramdisk, leave
Eric Andersena0ac4522003-02-27 03:14:04 +0000244 this disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000245
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000246config FSCK_MINIX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000247 bool "fsck_minix"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200248 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +0000249 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000250 The minix filesystem is a nice, small, compact, read-write filesystem
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000251 with little overhead. It is not a journaling filesystem however and
Eric Andersen88c916b2003-10-22 09:58:56 +0000252 can experience corruption if it is not properly unmounted or if the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000253 power goes off in the middle of a write. This utility allows you to
Eric Andersena0ac4522003-02-27 03:14:04 +0000254 check for and attempt to repair any corruption that occurs to a minix
255 filesystem.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000256
Vladimir Dronnikov0d8ea642009-11-02 10:41:46 +0100257config MKFS_EXT2
258 bool "mkfs_ext2"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200259 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100260 select PLATFORM_LINUX
Vladimir Dronnikov0d8ea642009-11-02 10:41:46 +0100261 help
262 Utility to create EXT2 filesystems.
263
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000264config MKFS_MINIX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000265 bool "mkfs_minix"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200266 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100267 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000268 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000269 The minix filesystem is a nice, small, compact, read-write filesystem
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000270 with little overhead. If you wish to be able to create minix
271 filesystems this utility will do the job for you.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000272
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000273config FEATURE_MINIX2
Rob Landley2ec922e2006-04-13 23:22:16 +0000274 bool "Support Minix fs v2 (fsck_minix/mkfs_minix)"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000275 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000276 depends on FSCK_MINIX || MKFS_MINIX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000277 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000278 If you wish to be able to create version 2 minix filesystems, enable
279 this. If you enabled 'mkfs_minix' then you almost certainly want to
280 be using the version 2 filesystem support.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000281
Vladimir Dronnikov0d8ea642009-11-02 10:41:46 +0100282config MKFS_REISER
283 bool "mkfs_reiser"
284 default n
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100285 select PLATFORM_LINUX
Vladimir Dronnikov0d8ea642009-11-02 10:41:46 +0100286 help
287 Utility to create ReiserFS filesystems.
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200288 Note: this applet needs a lot of testing and polishing.
Vladimir Dronnikov0d8ea642009-11-02 10:41:46 +0100289
Denis Vlasenko9d04b6b2009-03-28 02:13:01 +0000290config MKFS_VFAT
291 bool "mkfs_vfat"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200292 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100293 select PLATFORM_LINUX
Denis Vlasenko9d04b6b2009-03-28 02:13:01 +0000294 help
295 Utility to create FAT32 filesystems.
296
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000297config GETOPT
Eric Andersenc9f20d92002-12-05 08:41:41 +0000298 bool "getopt"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200299 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +0000300 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000301 The getopt utility is used to break up (parse) options in command
302 lines to make it easy to write complex shell scripts that also check
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000303 for legal (and illegal) options. If you want to write horribly
Eric Andersena0ac4522003-02-27 03:14:04 +0000304 complex shell scripts, or use some horribly complex shell script
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000305 written by others, this utility may be for you. Most people will
Eric Andersena0ac4522003-02-27 03:14:04 +0000306 wisely leave this disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000307
Denys Vlasenkof3b92d32009-06-19 12:10:38 +0200308config FEATURE_GETOPT_LONG
309 bool "Support option -l"
310 default y if LONG_OPTS
Denys Vlasenkob22bbff2009-07-04 16:50:43 +0200311 depends on GETOPT
Denys Vlasenkof3b92d32009-06-19 12:10:38 +0200312 help
Denys Vlasenkob22bbff2009-07-04 16:50:43 +0200313 Enable support for long options (option -l).
Denys Vlasenkof3b92d32009-06-19 12:10:38 +0200314
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000315config HEXDUMP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000316 bool "hexdump"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200317 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +0000318 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000319 The hexdump utility is used to display binary data in a readable
320 way that is comparable to the output from most hex editors.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000321
Denis Vlasenkofbe5f392007-11-18 05:36:50 +0000322config FEATURE_HEXDUMP_REVERSE
323 bool "Support -R, reverse of 'hexdump -Cv'"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200324 default y
Denis Vlasenkofbe5f392007-11-18 05:36:50 +0000325 depends on HEXDUMP
326 help
327 The hexdump utility is used to display binary data in an ascii
328 readable way. This option creates binary data from an ascii input.
329 NB: this option is non-standard. It's unwise to use it in scripts
330 aimed to be portable.
331
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000332config HD
333 bool "hd"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200334 default y
Denys Vlasenko161bb8f2010-06-06 05:07:11 +0200335 depends on HEXDUMP
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000336 help
337 hd is an alias to hexdump -C.
338
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000339config HWCLOCK
Eric Andersenc9f20d92002-12-05 08:41:41 +0000340 bool "hwclock"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200341 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100342 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000343 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000344 The hwclock utility is used to read and set the hardware clock
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000345 on a system. This is primarily used to set the current time on
Eric Andersen88c916b2003-10-22 09:58:56 +0000346 shutdown in the hardware clock, so the hardware will keep the
347 correct time when Linux is _not_ running.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000348
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000349config FEATURE_HWCLOCK_LONG_OPTIONS
Rob Landley2ec922e2006-04-13 23:22:16 +0000350 bool "Support long options (--hctosys,...)"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200351 default y
Denys Vlasenkof3b92d32009-06-19 12:10:38 +0200352 depends on HWCLOCK && LONG_OPTS
Eric Andersenc9f20d92002-12-05 08:41:41 +0000353 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000354 By default, the hwclock utility only uses short options. If you
Eric Andersen88c916b2003-10-22 09:58:56 +0000355 are overly fond of its long options, such as --hctosys, --utc, etc)
Eric Andersena0ac4522003-02-27 03:14:04 +0000356 then enable this option.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000357
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000358config FEATURE_HWCLOCK_ADJTIME_FHS
Rob Landley2ec922e2006-04-13 23:22:16 +0000359 bool "Use FHS /var/lib/hwclock/adjtime"
Denys Vlasenko81d9e602010-08-10 15:14:36 +0200360 default n # util-linux-ng in Fedora 13 still uses /etc/adjtime
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000361 depends on HWCLOCK
Mike Frysinger747fc5d2005-09-28 03:21:21 +0000362 help
363 Starting with FHS 2.3, the adjtime state file is supposed to exist
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000364 at /var/lib/hwclock/adjtime instead of /etc/adjtime. If you wish
Mike Frysinger747fc5d2005-09-28 03:21:21 +0000365 to use the FHS behavior, answer Y here, otherwise answer N for the
366 classic /etc/adjtime path.
367
Bernhard Reutner-Fischere99a92d2008-07-22 18:32:06 +0000368 pathname.com/fhs/pub/fhs-2.3.html#VARLIBHWCLOCKSTATEDIRECTORYFORHWCLO
Mike Frysinger747fc5d2005-09-28 03:21:21 +0000369
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000370config IPCRM
Rob Landley6eb1e412005-06-20 04:30:36 +0000371 bool "ipcrm"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200372 default y
Rob Landley6eb1e412005-06-20 04:30:36 +0000373 help
374 The ipcrm utility allows the removal of System V interprocess
375 communication (IPC) objects and the associated data structures
376 from the system.
377
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000378config IPCS
Rob Landley6eb1e412005-06-20 04:30:36 +0000379 bool "ipcs"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200380 default y
Tanguy Pruvot8aeb3712011-06-30 08:59:26 +0200381 depends on PLATFORM_LINUX
Rob Landley6eb1e412005-06-20 04:30:36 +0000382 help
383 The ipcs utility is used to provide information on the currently
384 allocated System V interprocess (IPC) objects in the system.
385
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000386config LOSETUP
Mike Frysinger75aa1922005-09-24 23:12:38 +0000387 bool "losetup"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200388 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100389 select PLATFORM_LINUX
Mike Frysinger75aa1922005-09-24 23:12:38 +0000390 help
391 losetup is used to associate or detach a loop device with a regular
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000392 file or block device, and to query the status of a loop device. This
Mike Frysinger75aa1922005-09-24 23:12:38 +0000393 version does not currently support enabling data encryption.
394
Souf Oued982bc712009-12-05 17:56:25 +0100395config LSPCI
396 bool "lspci"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200397 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100398 #select PLATFORM_LINUX
Souf Oued982bc712009-12-05 17:56:25 +0100399 help
400 lspci is a utility for displaying information about PCI buses in the
401 system and devices connected to them.
402
403 This version uses sysfs (/sys/bus/pci/devices) only.
404
Souf Oued11a802a2009-12-07 01:37:34 +0100405config LSUSB
406 bool "lsusb"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200407 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100408 #select PLATFORM_LINUX
Souf Oued11a802a2009-12-07 01:37:34 +0100409 help
410 lsusb is a utility for displaying information about USB buses in the
411 system and devices connected to them.
412
413 This version uses sysfs (/sys/bus/usb/devices) only.
414
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000415config MKSWAP
Eric Andersenc9f20d92002-12-05 08:41:41 +0000416 bool "mkswap"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200417 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +0000418 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000419 The mkswap utility is used to configure a file or disk partition as
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000420 Linux swap space. This allows Linux to use the entire file or
Eric Andersena0ac4522003-02-27 03:14:04 +0000421 partition as if it were additional RAM, which can greatly increase
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000422 the capability of low-memory machines. This additional memory is
Eric Andersena0ac4522003-02-27 03:14:04 +0000423 much slower than real RAM, but can be very helpful at preventing your
Eric Andersen88c916b2003-10-22 09:58:56 +0000424 applications being killed by the Linux out of memory (OOM) killer.
425 Once you have created swap space using 'mkswap' you need to enable
426 the swap space using the 'swapon' utility.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000427
Denys Vlasenkobeca96f2009-06-19 13:14:48 +0200428config FEATURE_MKSWAP_UUID
429 bool "UUID support"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200430 default y
Denys Vlasenkobeca96f2009-06-19 13:14:48 +0200431 depends on MKSWAP
432 help
433 Generate swap spaces with universally unique identifiers.
434
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000435config MORE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000436 bool "more"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200437 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +0000438 help
Eric Andersen88c916b2003-10-22 09:58:56 +0000439 more is a simple utility which allows you to read text one screen
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000440 sized page at a time. If you want to read text that is larger than
Eric Andersena0ac4522003-02-27 03:14:04 +0000441 the screen, and you are using anything faster than a 300 baud modem,
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000442 you will probably find this utility very helpful. If you don't have
Eric Andersena0ac4522003-02-27 03:14:04 +0000443 any need to reading text files, you can leave this disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000444
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000445config MOUNT
Mike Frysinger55092282006-02-02 23:14:57 +0000446 bool "mount"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200447 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100448 select PLATFORM_LINUX
Mike Frysinger55092282006-02-02 23:14:57 +0000449 help
450 All files and filesystems in Unix are arranged into one big directory
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000451 tree. The 'mount' utility is used to graft a filesystem onto a
452 particular part of the tree. A filesystem can either live on a block
Mike Frysinger55092282006-02-02 23:14:57 +0000453 device, or it can be accessible over the network, as is the case with
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000454 NFS filesystems. Most people using BusyBox will also want to enable
Mike Frysinger55092282006-02-02 23:14:57 +0000455 the 'mount' utility.
456
Denis Vlasenkob1d8e7d2008-02-16 23:28:42 +0000457config FEATURE_MOUNT_FAKE
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000458 bool "Support option -f"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200459 default y
Denis Vlasenkob1d8e7d2008-02-16 23:28:42 +0000460 depends on MOUNT
461 help
462 Enable support for faking a file system mount.
463
Denis Vlasenkof732e962008-02-18 12:07:49 +0000464config FEATURE_MOUNT_VERBOSE
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000465 bool "Support option -v"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200466 default y
Denis Vlasenkof732e962008-02-18 12:07:49 +0000467 depends on MOUNT
468 help
469 Enable multi-level -v[vv...] verbose messages. Useful if you
470 debug mount problems and want to see what is exactly passed
471 to the kernel.
472
Denis Vlasenko2535f122007-09-15 13:28:30 +0000473config FEATURE_MOUNT_HELPERS
474 bool "Support mount helpers"
475 default n
476 depends on MOUNT
477 help
478 Enable mounting of virtual file systems via external helpers.
Denis Vlasenko32d49bc2008-02-03 23:52:41 +0000479 E.g. "mount obexfs#-b00.11.22.33.44.55 /mnt" will in effect call
480 "obexfs -b00.11.22.33.44.55 /mnt"
481 Also "mount -t sometype [-o opts] fs /mnt" will try
482 "sometype [-o opts] fs /mnt" if simple mount syscall fails.
483 The idea is to use such virtual filesystems in /etc/fstab.
Denis Vlasenko2535f122007-09-15 13:28:30 +0000484
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000485config FEATURE_MOUNT_LABEL
Dan Fandricheafc6952010-06-17 23:30:27 -0700486 bool "Support specifying devices by label or UUID"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200487 default y
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000488 depends on MOUNT
Denis Vlasenko4824cca2008-03-21 18:29:01 +0000489 select VOLUMEID
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000490 help
491 This allows for specifying a device by label or uuid, rather than by
Denis Vlasenko1e19afd2008-10-12 11:20:08 +0000492 name. This feature utilizes the same functionality as blkid/findfs.
Natanael Copa9aff2992009-09-20 04:28:22 +0200493 This also enables label or uuid support for swapon.
Denis Vlasenkode7684a2008-02-18 21:08:49 +0000494
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000495config FEATURE_MOUNT_NFS
Tanguy Pruvot8a6c2c22012-04-28 00:24:09 +0200496 bool "Support mounting NFS file systems on Linux < 2.6.23"
497 default n
Denis Vlasenkoa7825f22007-06-16 13:56:51 +0000498 depends on MOUNT
499 select FEATURE_HAVE_RPC
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000500 select FEATURE_SYSLOG
Mike Frysinger55092282006-02-02 23:14:57 +0000501 help
Tanguy Pruvot8a6c2c22012-04-28 00:24:09 +0200502 Enable mounting of NFS file systems on Linux kernels prior
503 to version 2.6.23. Note that in this case mounting of NFS
504 over IPv6 will not be possible.
505
506 Note that this option links in RPC support from libc,
507 which is rather large (~10 kbytes on uclibc).
Rob Landleye3781b72006-08-08 01:39:49 +0000508
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000509config FEATURE_MOUNT_CIFS
Rob Landley89d9d4d2006-09-01 08:10:44 +0000510 bool "Support mounting CIFS/SMB file systems"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200511 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000512 depends on MOUNT
Rob Landley89d9d4d2006-09-01 08:10:44 +0000513 help
514 Enable support for samba mounts.
Denis Vlasenko39e93cc2006-09-10 18:38:17 +0000515
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000516config FEATURE_MOUNT_FLAGS
517 depends on MOUNT
Denis Vlasenko39e93cc2006-09-10 18:38:17 +0000518 bool "Support lots of -o flags in mount"
Rob Landleye3781b72006-08-08 01:39:49 +0000519 default y
520 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000521 Without this, mount only supports ro/rw/remount. With this, it
Rob Landleye3781b72006-08-08 01:39:49 +0000522 supports nosuid, suid, dev, nodev, exec, noexec, sync, async, atime,
523 noatime, diratime, nodiratime, loud, bind, move, shared, slave,
524 private, unbindable, rshared, rslave, rprivate, and runbindable.
525
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000526config FEATURE_MOUNT_FSTAB
527 depends on MOUNT
Rob Landleye3781b72006-08-08 01:39:49 +0000528 bool "Support /etc/fstab and -a"
529 default y
530 help
531 Support mount all and looking for files in /etc/fstab.
Mike Frysinger55092282006-02-02 23:14:57 +0000532
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000533config PIVOT_ROOT
Eric Andersenc9f20d92002-12-05 08:41:41 +0000534 bool "pivot_root"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200535 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100536 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000537 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000538 The pivot_root utility swaps the mount points for the root filesystem
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000539 with some other mounted filesystem. This allows you to do all sorts
Eric Andersena0ac4522003-02-27 03:14:04 +0000540 of wild and crazy things with your Linux system and is far more
541 powerful than 'chroot'.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000542
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000543 Note: This is for initrd in linux 2.4. Under initramfs (introduced
Rob Landley0f34a822005-10-27 22:55:50 +0000544 in linux 2.6) use switch_root instead.
545
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000546config RDATE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000547 bool "rdate"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200548 default y
Eric Andersenc9f20d92002-12-05 08:41:41 +0000549 help
Eric Andersenc7bda1c2004-03-15 08:29:22 +0000550 The rdate utility allows you to synchronize the date and time of your
Eric Andersena0ac4522003-02-27 03:14:04 +0000551 system clock with the date and time of a remote networked system using
552 the RFC868 protocol, which is built into the inetd daemon on most
553 systems.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000554
Bernhard Reutner-Fischerc77e8432008-08-19 11:28:52 +0000555config RDEV
Denys Vlasenko345e0932010-03-31 16:03:56 +0200556 bool "rdev"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200557 default y
Denys Vlasenko345e0932010-03-31 16:03:56 +0200558 help
Bernhard Reutner-Fischerc77e8432008-08-19 11:28:52 +0000559 Print the device node associated with the filesystem mounted at '/'.
560
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000561config READPROFILE
Mike Frysinger75aa1922005-09-24 23:12:38 +0000562 bool "readprofile"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200563 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100564 #select PLATFORM_LINUX
Mike Frysinger75aa1922005-09-24 23:12:38 +0000565 help
566 This allows you to parse /proc/profile for basic profiling.
567
Mike Frysinger6b160e42008-02-15 02:27:19 +0000568config RTCWAKE
569 bool "rtcwake"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200570 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100571 select PLATFORM_LINUX
Mike Frysinger6b160e42008-02-15 02:27:19 +0000572 help
573 Enter a system sleep state until specified wakeup time.
574
Denis Vlasenko376003b2008-04-21 05:05:17 +0000575config SCRIPT
576 bool "script"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200577 default y
Denis Vlasenko376003b2008-04-21 05:05:17 +0000578 help
579 The script makes typescript of terminal session.
580
Denys Vlasenko5e611152009-05-19 17:36:16 +0200581config SCRIPTREPLAY
582 bool "scriptreplay"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200583 default y
Denys Vlasenko5e611152009-05-19 17:36:16 +0200584 help
585 This program replays a typescript, using timing information
586 given by script -t.
587
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000588config SETARCH
Mike Frysinger0a6b0bf2006-02-21 04:26:52 +0000589 bool "setarch"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200590 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100591 select PLATFORM_LINUX
Mike Frysinger0a6b0bf2006-02-21 04:26:52 +0000592 help
593 The linux32 utility is used to create a 32bit environment for the
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000594 specified program (usually a shell). It only makes sense to have
Mike Frysinger0a6b0bf2006-02-21 04:26:52 +0000595 this util on a system that supports both 64bit and 32bit userland
596 (like amd64/x86, ppc64/ppc, sparc64/sparc, etc...).
597
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000598config SWAPONOFF
Eric Andersenc9f20d92002-12-05 08:41:41 +0000599 bool "swaponoff"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200600 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100601 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000602 help
Eric Andersena0ac4522003-02-27 03:14:04 +0000603 This option enables both the 'swapon' and the 'swapoff' utilities.
604 Once you have created some swap space using 'mkswap', you also need
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000605 to enable your swap space with the 'swapon' utility. The 'swapoff'
Eric Andersena0ac4522003-02-27 03:14:04 +0000606 utility is used, typically at system shutdown, to disable any swap
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000607 space. If you are not using any swap space, you can leave this
Eric Andersena0ac4522003-02-27 03:14:04 +0000608 option disabled.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000609
Denis Vlasenkoee56e012008-05-18 23:05:34 +0000610config FEATURE_SWAPON_PRI
Bernhard Reutner-Fischer3576bed2008-05-19 08:25:23 +0000611 bool "Support priority option -p"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200612 default y
Denis Vlasenkoee56e012008-05-18 23:05:34 +0000613 depends on SWAPONOFF
614 help
615 Enable support for setting swap device priority in swapon.
616
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000617config SWITCH_ROOT
Mike Frysinger55092282006-02-02 23:14:57 +0000618 bool "switch_root"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200619 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100620 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000621 help
Mike Frysinger55092282006-02-02 23:14:57 +0000622 The switch_root utility is used from initramfs to select a new
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000623 root device. Under initramfs, you have to use this instead of
624 pivot_root. (Stop reading here if you don't care why.)
Eric Andersenc9f20d92002-12-05 08:41:41 +0000625
Mike Frysinger55092282006-02-02 23:14:57 +0000626 Booting with initramfs extracts a gzipped cpio archive into rootfs
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000627 (which is a variant of ramfs/tmpfs). Because rootfs can't be moved
628 or unmounted*, pivot_root will not work from initramfs. Instead,
Mike Frysinger55092282006-02-02 23:14:57 +0000629 switch_root deletes everything out of rootfs (including itself),
630 does a mount --move that overmounts rootfs with the new root, and
631 then execs the specified init program.
632
633 * Because the Linux kernel uses rootfs internally as the starting
634 and ending point for searching through the kernel's doubly linked
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000635 list of active mount points. That's why.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000636
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000637config UMOUNT
Eric Andersenc9f20d92002-12-05 08:41:41 +0000638 bool "umount"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200639 default y
Denys Vlasenkoe3b1a1f2011-02-26 22:24:08 +0100640 select PLATFORM_LINUX
Eric Andersenc9f20d92002-12-05 08:41:41 +0000641 help
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000642 When you want to remove a mounted filesystem from its current mount
643 point, for example when you are shutting down the system, the
644 'umount' utility is the tool to use. If you enabled the 'mount'
645 utility, you almost certainly also want to enable 'umount'.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000646
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000647config FEATURE_UMOUNT_ALL
Denis Vlasenko4ee7cd42008-03-17 09:13:22 +0000648 bool "Support option -a"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200649 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000650 depends on UMOUNT
Rob Landleycc6d8d32006-02-08 20:06:57 +0000651 help
652 Support -a option to unmount all currently mounted filesystems.
653
Eric Andersenc9f20d92002-12-05 08:41:41 +0000654comment "Common options for mount/umount"
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000655 depends on MOUNT || UMOUNT
Eric Andersenc9f20d92002-12-05 08:41:41 +0000656
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000657config FEATURE_MOUNT_LOOP
Rob Landley2ec922e2006-04-13 23:22:16 +0000658 bool "Support loopback mounts"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200659 default y
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000660 depends on MOUNT || UMOUNT
Eric Andersenc9f20d92002-12-05 08:41:41 +0000661 help
Rob Landley6a6798b2005-08-10 20:35:54 +0000662 Enabling this feature allows automatic mounting of files (containing
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000663 filesystem images) via the linux kernel's loopback devices.
664 The mount command will detect you are trying to mount a file instead
665 of a block device, and transparently associate the file with a
666 loopback device. The umount command will also free that loopback
667 device.
Tim Rikerc1ef7bd2006-01-25 00:08:53 +0000668
Rob Landley6a6798b2005-08-10 20:35:54 +0000669 You can still use the 'losetup' utility (to manually associate files
Mike Frysinger71a6a4e2007-01-24 08:24:43 +0000670 with loop devices) if you need to do something advanced, such as
Rob Landley6a6798b2005-08-10 20:35:54 +0000671 specify an offset or cryptographic options to the loopback device.
672 (If you don't want umount to free the loop device, use "umount -D".)
Paul Fox3f6f3172005-07-19 20:55:37 +0000673
Lauri Kasanen375a8ef2010-04-14 12:31:26 -0700674config FEATURE_MOUNT_LOOP_CREATE
675 bool "Create new loopback devices if needed"
Denys Vlasenko2f32bf82010-06-06 04:14:28 +0200676 default y
Lauri Kasanen375a8ef2010-04-14 12:31:26 -0700677 depends on FEATURE_MOUNT_LOOP
678 help
679 Linux kernels >= 2.6.24 support unlimited loopback devices. They are
680 allocated for use when trying to use a loop device. The loop device
681 must however exist.
682
683 This feature lets mount to try to create next /dev/loopN device
684 if it does not find a free one.
685
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000686config FEATURE_MTAB_SUPPORT
Rob Landley2ec922e2006-04-13 23:22:16 +0000687 bool "Support for the old /etc/mtab file"
Eric Andersenc9f20d92002-12-05 08:41:41 +0000688 default n
Denis Vlasenko7d219aa2006-10-05 10:17:08 +0000689 depends on MOUNT || UMOUNT
Denis Vlasenkob1d8e7d2008-02-16 23:28:42 +0000690 select FEATURE_MOUNT_FAKE
Eric Andersenc9f20d92002-12-05 08:41:41 +0000691 help
Rob Landley6a6798b2005-08-10 20:35:54 +0000692 Historically, Unix systems kept track of the currently mounted
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000693 partitions in the file "/etc/mtab". These days, the kernel exports
Rob Landley6a6798b2005-08-10 20:35:54 +0000694 the list of currently mounted partitions in "/proc/mounts", rendering
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000695 the old mtab file obsolete. (In modern systems, /etc/mtab should be
Rob Landley6a6798b2005-08-10 20:35:54 +0000696 a symlink to /proc/mounts.)
Eric Andersena0ac4522003-02-27 03:14:04 +0000697
Rob Landley6a6798b2005-08-10 20:35:54 +0000698 The only reason to have mount maintain an /etc/mtab file itself is if
699 your stripped-down embedded system does not have a /proc directory.
700 If you must use this, keep in mind it's inherently brittle (for
701 example a mount under chroot won't update it), can't handle modern
702 features like separate per-process filesystem namespaces, requires
Dan Fandricheafc6952010-06-17 23:30:27 -0700703 that your /etc directory be writable, tends to get easily confused
Rob Landley17507fa2006-05-08 02:22:24 +0000704 by --bind or --move mounts, won't update if you rename a directory
Bernhard Reutner-Fischer3e8669f2008-07-22 18:27:53 +0000705 that contains a mount point, and so on. (In brief: avoid.)
Rob Landley17507fa2006-05-08 02:22:24 +0000706
707 About the only reason to use this is if you've removed /proc from
708 your kernel.
Eric Andersenc9f20d92002-12-05 08:41:41 +0000709
maxwen27116ba2015-08-14 21:41:28 +0200710source util-linux/volume_id/Config.in
Denys Vlasenko0e450662010-07-14 07:10:47 +0200711
Eric Andersenc9f20d92002-12-05 08:41:41 +0000712endmenu