Config.src 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see scripts/kbuild/config-language.txt.
  4. #
  5. menu "Linux System Utilities"
  6. INSERT
  7. config ACPID
  8. bool "acpid"
  9. default y
  10. select PLATFORM_LINUX
  11. help
  12. acpid listens to ACPI events coming either in textual form from
  13. /proc/acpi/event (though it is marked deprecated it is still widely
  14. used and _is_ a standard) or in binary form from specified evdevs
  15. (just use /dev/input/event*).
  16. It parses the event to retrieve ACTION and a possible PARAMETER.
  17. It then spawns /etc/acpi/<ACTION>[/<PARAMETER>] either via run-parts
  18. (if the resulting path is a directory) or directly as an executable.
  19. N.B. acpid relies on run-parts so have the latter installed.
  20. config FEATURE_ACPID_COMPAT
  21. bool "Accept and ignore redundant options"
  22. default y
  23. depends on ACPID
  24. help
  25. Accept and ignore compatibility options -g -m -s -S -v.
  26. config BLKID
  27. bool "blkid"
  28. default y
  29. select PLATFORM_LINUX
  30. select VOLUMEID
  31. help
  32. Lists labels and UUIDs of all filesystems.
  33. WARNING:
  34. With all submodules selected, it will add ~8k to busybox.
  35. config FEATURE_BLKID_TYPE
  36. bool "Print filesystem type"
  37. default n
  38. depends on BLKID
  39. help
  40. Show TYPE="filesystem type"
  41. config DMESG
  42. bool "dmesg"
  43. default y
  44. select PLATFORM_LINUX
  45. help
  46. dmesg is used to examine or control the kernel ring buffer. When the
  47. Linux kernel prints messages to the system log, they are stored in
  48. the kernel ring buffer. You can use dmesg to print the kernel's ring
  49. buffer, clear the kernel ring buffer, change the size of the kernel
  50. ring buffer, and change the priority level at which kernel messages
  51. are also logged to the system console. Enable this option if you
  52. wish to enable the 'dmesg' utility.
  53. config FEATURE_DMESG_PRETTY
  54. bool "Pretty dmesg output"
  55. default y
  56. depends on DMESG
  57. help
  58. If you wish to scrub the syslog level from the output, say 'Y' here.
  59. The syslog level is a string prefixed to every line with the form
  60. "<#>".
  61. With this option you will see:
  62. # dmesg
  63. Linux version 2.6.17.4 .....
  64. BIOS-provided physical RAM map:
  65. BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
  66. Without this option you will see:
  67. # dmesg
  68. <5>Linux version 2.6.17.4 .....
  69. <6>BIOS-provided physical RAM map:
  70. <6> BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
  71. config FBSET
  72. bool "fbset"
  73. default y
  74. select PLATFORM_LINUX
  75. help
  76. fbset is used to show or change the settings of a Linux frame buffer
  77. device. The frame buffer device provides a simple and unique
  78. interface to access a graphics display. Enable this option
  79. if you wish to enable the 'fbset' utility.
  80. config FEATURE_FBSET_FANCY
  81. bool "Turn on extra fbset options"
  82. default y
  83. depends on FBSET
  84. help
  85. This option enables extended fbset options, allowing one to set the
  86. framebuffer size, color depth, etc. interface to access a graphics
  87. display. Enable this option if you wish to enable extended fbset
  88. options.
  89. config FEATURE_FBSET_READMODE
  90. bool "Turn on fbset readmode support"
  91. default y
  92. depends on FBSET
  93. help
  94. This option allows fbset to read the video mode database stored by
  95. default as /etc/fb.modes, which can be used to set frame buffer
  96. device to pre-defined video modes.
  97. config FDFLUSH
  98. bool "fdflush"
  99. default y
  100. select PLATFORM_LINUX
  101. help
  102. fdflush is only needed when changing media on slightly-broken
  103. removable media drives. It is used to make Linux believe that a
  104. hardware disk-change switch has been actuated, which causes Linux to
  105. forget anything it has cached from the previous media. If you have
  106. such a slightly-broken drive, you will need to run fdflush every time
  107. you change a disk. Most people have working hardware and can safely
  108. leave this disabled.
  109. config FDFORMAT
  110. bool "fdformat"
  111. default y
  112. select PLATFORM_LINUX
  113. help
  114. fdformat is used to low-level format a floppy disk.
  115. config FDISK
  116. bool "fdisk"
  117. default y
  118. select PLATFORM_LINUX
  119. help
  120. The fdisk utility is used to divide hard disks into one or more
  121. logical disks, which are generally called partitions. This utility
  122. can be used to list and edit the set of partitions or BSD style
  123. 'disk slices' that are defined on a hard drive.
  124. config FDISK_SUPPORT_LARGE_DISKS
  125. bool "Support over 4GB disks"
  126. default y
  127. depends on FDISK
  128. depends on !LFS # with LFS no special code is needed
  129. help
  130. Enable this option to support large disks > 4GB.
  131. config FEATURE_FDISK_WRITABLE
  132. bool "Write support"
  133. default y
  134. depends on FDISK
  135. help
  136. Enabling this option allows you to create or change a partition table
  137. and write those changes out to disk. If you leave this option
  138. disabled, you will only be able to view the partition table.
  139. config FEATURE_AIX_LABEL
  140. bool "Support AIX disklabels"
  141. default n
  142. depends on FDISK && FEATURE_FDISK_WRITABLE
  143. help
  144. Enabling this option allows you to create or change AIX disklabels.
  145. Most people can safely leave this option disabled.
  146. config FEATURE_SGI_LABEL
  147. bool "Support SGI disklabels"
  148. default n
  149. depends on FDISK && FEATURE_FDISK_WRITABLE
  150. help
  151. Enabling this option allows you to create or change SGI disklabels.
  152. Most people can safely leave this option disabled.
  153. config FEATURE_SUN_LABEL
  154. bool "Support SUN disklabels"
  155. default n
  156. depends on FDISK && FEATURE_FDISK_WRITABLE
  157. help
  158. Enabling this option allows you to create or change SUN disklabels.
  159. Most people can safely leave this option disabled.
  160. config FEATURE_OSF_LABEL
  161. bool "Support BSD disklabels"
  162. default n
  163. depends on FDISK && FEATURE_FDISK_WRITABLE
  164. help
  165. Enabling this option allows you to create or change BSD disklabels
  166. and define and edit BSD disk slices.
  167. config FEATURE_GPT_LABEL
  168. bool "Support GPT disklabels"
  169. default n
  170. depends on FDISK && FEATURE_FDISK_WRITABLE
  171. help
  172. Enabling this option allows you to view GUID Partition Table
  173. disklabels.
  174. config FEATURE_FDISK_ADVANCED
  175. bool "Support expert mode"
  176. default y
  177. depends on FDISK && FEATURE_FDISK_WRITABLE
  178. help
  179. Enabling this option allows you to do terribly unsafe things like
  180. define arbitrary drive geometry, move the beginning of data in a
  181. partition, and similarly evil things. Unless you have a very good
  182. reason you would be wise to leave this disabled.
  183. config FINDFS
  184. bool "findfs"
  185. default y
  186. select PLATFORM_LINUX
  187. select VOLUMEID
  188. help
  189. Prints the name of a filesystem with given label or UUID.
  190. WARNING:
  191. With all submodules selected, it will add ~8k to busybox.
  192. config FLOCK
  193. bool "flock"
  194. default y
  195. help
  196. Manage locks from shell scripts
  197. config FREERAMDISK
  198. bool "freeramdisk"
  199. default y
  200. select PLATFORM_LINUX
  201. help
  202. Linux allows you to create ramdisks. This utility allows you to
  203. delete them and completely free all memory that was used for the
  204. ramdisk. For example, if you boot Linux into a ramdisk and later
  205. pivot_root, you may want to free the memory that is allocated to the
  206. ramdisk. If you have no use for freeing memory from a ramdisk, leave
  207. this disabled.
  208. config FSCK_MINIX
  209. bool "fsck_minix"
  210. default y
  211. help
  212. The minix filesystem is a nice, small, compact, read-write filesystem
  213. with little overhead. It is not a journaling filesystem however and
  214. can experience corruption if it is not properly unmounted or if the
  215. power goes off in the middle of a write. This utility allows you to
  216. check for and attempt to repair any corruption that occurs to a minix
  217. filesystem.
  218. config MKFS_EXT2
  219. bool "mkfs_ext2"
  220. default y
  221. select PLATFORM_LINUX
  222. help
  223. Utility to create EXT2 filesystems.
  224. config MKFS_MINIX
  225. bool "mkfs_minix"
  226. default y
  227. select PLATFORM_LINUX
  228. help
  229. The minix filesystem is a nice, small, compact, read-write filesystem
  230. with little overhead. If you wish to be able to create minix
  231. filesystems this utility will do the job for you.
  232. config FEATURE_MINIX2
  233. bool "Support Minix fs v2 (fsck_minix/mkfs_minix)"
  234. default y
  235. depends on FSCK_MINIX || MKFS_MINIX
  236. help
  237. If you wish to be able to create version 2 minix filesystems, enable
  238. this. If you enabled 'mkfs_minix' then you almost certainly want to
  239. be using the version 2 filesystem support.
  240. config MKFS_REISER
  241. bool "mkfs_reiser"
  242. default n
  243. select PLATFORM_LINUX
  244. help
  245. Utility to create ReiserFS filesystems.
  246. Note: this applet needs a lot of testing and polishing.
  247. config MKFS_VFAT
  248. bool "mkfs_vfat"
  249. default y
  250. select PLATFORM_LINUX
  251. help
  252. Utility to create FAT32 filesystems.
  253. config GETOPT
  254. bool "getopt"
  255. default y
  256. help
  257. The getopt utility is used to break up (parse) options in command
  258. lines to make it easy to write complex shell scripts that also check
  259. for legal (and illegal) options. If you want to write horribly
  260. complex shell scripts, or use some horribly complex shell script
  261. written by others, this utility may be for you. Most people will
  262. wisely leave this disabled.
  263. config FEATURE_GETOPT_LONG
  264. bool "Support option -l"
  265. default y if LONG_OPTS
  266. depends on GETOPT
  267. help
  268. Enable support for long options (option -l).
  269. config HEXDUMP
  270. bool "hexdump"
  271. default y
  272. help
  273. The hexdump utility is used to display binary data in a readable
  274. way that is comparable to the output from most hex editors.
  275. config FEATURE_HEXDUMP_REVERSE
  276. bool "Support -R, reverse of 'hexdump -Cv'"
  277. default y
  278. depends on HEXDUMP
  279. help
  280. The hexdump utility is used to display binary data in an ascii
  281. readable way. This option creates binary data from an ascii input.
  282. NB: this option is non-standard. It's unwise to use it in scripts
  283. aimed to be portable.
  284. config HD
  285. bool "hd"
  286. default y
  287. depends on HEXDUMP
  288. help
  289. hd is an alias to hexdump -C.
  290. config HWCLOCK
  291. bool "hwclock"
  292. default y
  293. select PLATFORM_LINUX
  294. help
  295. The hwclock utility is used to read and set the hardware clock
  296. on a system. This is primarily used to set the current time on
  297. shutdown in the hardware clock, so the hardware will keep the
  298. correct time when Linux is _not_ running.
  299. config FEATURE_HWCLOCK_LONG_OPTIONS
  300. bool "Support long options (--hctosys,...)"
  301. default y
  302. depends on HWCLOCK && LONG_OPTS
  303. help
  304. By default, the hwclock utility only uses short options. If you
  305. are overly fond of its long options, such as --hctosys, --utc, etc)
  306. then enable this option.
  307. config FEATURE_HWCLOCK_ADJTIME_FHS
  308. bool "Use FHS /var/lib/hwclock/adjtime"
  309. default n # util-linux-ng in Fedora 13 still uses /etc/adjtime
  310. depends on HWCLOCK
  311. help
  312. Starting with FHS 2.3, the adjtime state file is supposed to exist
  313. at /var/lib/hwclock/adjtime instead of /etc/adjtime. If you wish
  314. to use the FHS behavior, answer Y here, otherwise answer N for the
  315. classic /etc/adjtime path.
  316. pathname.com/fhs/pub/fhs-2.3.html#VARLIBHWCLOCKSTATEDIRECTORYFORHWCLO
  317. config IPCRM
  318. bool "ipcrm"
  319. default y
  320. help
  321. The ipcrm utility allows the removal of System V interprocess
  322. communication (IPC) objects and the associated data structures
  323. from the system.
  324. config IPCS
  325. bool "ipcs"
  326. default y
  327. select PLATFORM_LINUX
  328. help
  329. The ipcs utility is used to provide information on the currently
  330. allocated System V interprocess (IPC) objects in the system.
  331. config LOSETUP
  332. bool "losetup"
  333. default y
  334. select PLATFORM_LINUX
  335. help
  336. losetup is used to associate or detach a loop device with a regular
  337. file or block device, and to query the status of a loop device. This
  338. version does not currently support enabling data encryption.
  339. config LSPCI
  340. bool "lspci"
  341. default y
  342. #select PLATFORM_LINUX
  343. help
  344. lspci is a utility for displaying information about PCI buses in the
  345. system and devices connected to them.
  346. This version uses sysfs (/sys/bus/pci/devices) only.
  347. config LSUSB
  348. bool "lsusb"
  349. default y
  350. #select PLATFORM_LINUX
  351. help
  352. lsusb is a utility for displaying information about USB buses in the
  353. system and devices connected to them.
  354. This version uses sysfs (/sys/bus/usb/devices) only.
  355. config MKSWAP
  356. bool "mkswap"
  357. default y
  358. help
  359. The mkswap utility is used to configure a file or disk partition as
  360. Linux swap space. This allows Linux to use the entire file or
  361. partition as if it were additional RAM, which can greatly increase
  362. the capability of low-memory machines. This additional memory is
  363. much slower than real RAM, but can be very helpful at preventing your
  364. applications being killed by the Linux out of memory (OOM) killer.
  365. Once you have created swap space using 'mkswap' you need to enable
  366. the swap space using the 'swapon' utility.
  367. config FEATURE_MKSWAP_UUID
  368. bool "UUID support"
  369. default y
  370. depends on MKSWAP
  371. help
  372. Generate swap spaces with universally unique identifiers.
  373. config MORE
  374. bool "more"
  375. default y
  376. help
  377. more is a simple utility which allows you to read text one screen
  378. sized page at a time. If you want to read text that is larger than
  379. the screen, and you are using anything faster than a 300 baud modem,
  380. you will probably find this utility very helpful. If you don't have
  381. any need to reading text files, you can leave this disabled.
  382. config MOUNT
  383. bool "mount"
  384. default y
  385. select PLATFORM_LINUX
  386. help
  387. All files and filesystems in Unix are arranged into one big directory
  388. tree. The 'mount' utility is used to graft a filesystem onto a
  389. particular part of the tree. A filesystem can either live on a block
  390. device, or it can be accessible over the network, as is the case with
  391. NFS filesystems. Most people using BusyBox will also want to enable
  392. the 'mount' utility.
  393. config FEATURE_MOUNT_FAKE
  394. bool "Support option -f"
  395. default y
  396. depends on MOUNT
  397. help
  398. Enable support for faking a file system mount.
  399. config FEATURE_MOUNT_VERBOSE
  400. bool "Support option -v"
  401. default y
  402. depends on MOUNT
  403. help
  404. Enable multi-level -v[vv...] verbose messages. Useful if you
  405. debug mount problems and want to see what is exactly passed
  406. to the kernel.
  407. config FEATURE_MOUNT_HELPERS
  408. bool "Support mount helpers"
  409. default n
  410. depends on MOUNT
  411. help
  412. Enable mounting of virtual file systems via external helpers.
  413. E.g. "mount obexfs#-b00.11.22.33.44.55 /mnt" will in effect call
  414. "obexfs -b00.11.22.33.44.55 /mnt"
  415. Also "mount -t sometype [-o opts] fs /mnt" will try
  416. "sometype [-o opts] fs /mnt" if simple mount syscall fails.
  417. The idea is to use such virtual filesystems in /etc/fstab.
  418. config FEATURE_MOUNT_LABEL
  419. bool "Support specifying devices by label or UUID"
  420. default y
  421. depends on MOUNT
  422. select VOLUMEID
  423. help
  424. This allows for specifying a device by label or uuid, rather than by
  425. name. This feature utilizes the same functionality as blkid/findfs.
  426. This also enables label or uuid support for swapon.
  427. config FEATURE_MOUNT_NFS
  428. bool "Support mounting NFS file systems on Linux < 2.6.23"
  429. default n
  430. depends on MOUNT
  431. select FEATURE_HAVE_RPC
  432. select FEATURE_SYSLOG
  433. help
  434. Enable mounting of NFS file systems on Linux kernels prior
  435. to version 2.6.23. Note that in this case mounting of NFS
  436. over IPv6 will not be possible.
  437. Note that this option links in RPC support from libc,
  438. which is rather large (~10 kbytes on uclibc).
  439. config FEATURE_MOUNT_CIFS
  440. bool "Support mounting CIFS/SMB file systems"
  441. default y
  442. depends on MOUNT
  443. help
  444. Enable support for samba mounts.
  445. config FEATURE_MOUNT_FLAGS
  446. depends on MOUNT
  447. bool "Support lots of -o flags in mount"
  448. default y
  449. help
  450. Without this, mount only supports ro/rw/remount. With this, it
  451. supports nosuid, suid, dev, nodev, exec, noexec, sync, async, atime,
  452. noatime, diratime, nodiratime, loud, bind, move, shared, slave,
  453. private, unbindable, rshared, rslave, rprivate, and runbindable.
  454. config FEATURE_MOUNT_FSTAB
  455. depends on MOUNT
  456. bool "Support /etc/fstab and -a"
  457. default y
  458. help
  459. Support mount all and looking for files in /etc/fstab.
  460. config PIVOT_ROOT
  461. bool "pivot_root"
  462. default y
  463. select PLATFORM_LINUX
  464. help
  465. The pivot_root utility swaps the mount points for the root filesystem
  466. with some other mounted filesystem. This allows you to do all sorts
  467. of wild and crazy things with your Linux system and is far more
  468. powerful than 'chroot'.
  469. Note: This is for initrd in linux 2.4. Under initramfs (introduced
  470. in linux 2.6) use switch_root instead.
  471. config RDATE
  472. bool "rdate"
  473. default y
  474. help
  475. The rdate utility allows you to synchronize the date and time of your
  476. system clock with the date and time of a remote networked system using
  477. the RFC868 protocol, which is built into the inetd daemon on most
  478. systems.
  479. config RDEV
  480. bool "rdev"
  481. default y
  482. help
  483. Print the device node associated with the filesystem mounted at '/'.
  484. config READPROFILE
  485. bool "readprofile"
  486. default y
  487. #select PLATFORM_LINUX
  488. help
  489. This allows you to parse /proc/profile for basic profiling.
  490. config RTCWAKE
  491. bool "rtcwake"
  492. default y
  493. select PLATFORM_LINUX
  494. help
  495. Enter a system sleep state until specified wakeup time.
  496. config SCRIPT
  497. bool "script"
  498. default y
  499. help
  500. The script makes typescript of terminal session.
  501. config SCRIPTREPLAY
  502. bool "scriptreplay"
  503. default y
  504. help
  505. This program replays a typescript, using timing information
  506. given by script -t.
  507. config SETARCH
  508. bool "setarch"
  509. default y
  510. select PLATFORM_LINUX
  511. help
  512. The linux32 utility is used to create a 32bit environment for the
  513. specified program (usually a shell). It only makes sense to have
  514. this util on a system that supports both 64bit and 32bit userland
  515. (like amd64/x86, ppc64/ppc, sparc64/sparc, etc...).
  516. config SWAPONOFF
  517. bool "swaponoff"
  518. default y
  519. select PLATFORM_LINUX
  520. help
  521. This option enables both the 'swapon' and the 'swapoff' utilities.
  522. Once you have created some swap space using 'mkswap', you also need
  523. to enable your swap space with the 'swapon' utility. The 'swapoff'
  524. utility is used, typically at system shutdown, to disable any swap
  525. space. If you are not using any swap space, you can leave this
  526. option disabled.
  527. config FEATURE_SWAPON_PRI
  528. bool "Support priority option -p"
  529. default y
  530. depends on SWAPONOFF
  531. help
  532. Enable support for setting swap device priority in swapon.
  533. config SWITCH_ROOT
  534. bool "switch_root"
  535. default y
  536. select PLATFORM_LINUX
  537. help
  538. The switch_root utility is used from initramfs to select a new
  539. root device. Under initramfs, you have to use this instead of
  540. pivot_root. (Stop reading here if you don't care why.)
  541. Booting with initramfs extracts a gzipped cpio archive into rootfs
  542. (which is a variant of ramfs/tmpfs). Because rootfs can't be moved
  543. or unmounted*, pivot_root will not work from initramfs. Instead,
  544. switch_root deletes everything out of rootfs (including itself),
  545. does a mount --move that overmounts rootfs with the new root, and
  546. then execs the specified init program.
  547. * Because the Linux kernel uses rootfs internally as the starting
  548. and ending point for searching through the kernel's doubly linked
  549. list of active mount points. That's why.
  550. config UMOUNT
  551. bool "umount"
  552. default y
  553. select PLATFORM_LINUX
  554. help
  555. When you want to remove a mounted filesystem from its current mount
  556. point, for example when you are shutting down the system, the
  557. 'umount' utility is the tool to use. If you enabled the 'mount'
  558. utility, you almost certainly also want to enable 'umount'.
  559. config FEATURE_UMOUNT_ALL
  560. bool "Support option -a"
  561. default y
  562. depends on UMOUNT
  563. help
  564. Support -a option to unmount all currently mounted filesystems.
  565. comment "Common options for mount/umount"
  566. depends on MOUNT || UMOUNT
  567. config FEATURE_MOUNT_LOOP
  568. bool "Support loopback mounts"
  569. default y
  570. depends on MOUNT || UMOUNT
  571. help
  572. Enabling this feature allows automatic mounting of files (containing
  573. filesystem images) via the linux kernel's loopback devices.
  574. The mount command will detect you are trying to mount a file instead
  575. of a block device, and transparently associate the file with a
  576. loopback device. The umount command will also free that loopback
  577. device.
  578. You can still use the 'losetup' utility (to manually associate files
  579. with loop devices) if you need to do something advanced, such as
  580. specify an offset or cryptographic options to the loopback device.
  581. (If you don't want umount to free the loop device, use "umount -D".)
  582. config FEATURE_MOUNT_LOOP_CREATE
  583. bool "Create new loopback devices if needed"
  584. default y
  585. depends on FEATURE_MOUNT_LOOP
  586. help
  587. Linux kernels >= 2.6.24 support unlimited loopback devices. They are
  588. allocated for use when trying to use a loop device. The loop device
  589. must however exist.
  590. This feature lets mount to try to create next /dev/loopN device
  591. if it does not find a free one.
  592. config FEATURE_MTAB_SUPPORT
  593. bool "Support for the old /etc/mtab file"
  594. default n
  595. depends on MOUNT || UMOUNT
  596. select FEATURE_MOUNT_FAKE
  597. help
  598. Historically, Unix systems kept track of the currently mounted
  599. partitions in the file "/etc/mtab". These days, the kernel exports
  600. the list of currently mounted partitions in "/proc/mounts", rendering
  601. the old mtab file obsolete. (In modern systems, /etc/mtab should be
  602. a symlink to /proc/mounts.)
  603. The only reason to have mount maintain an /etc/mtab file itself is if
  604. your stripped-down embedded system does not have a /proc directory.
  605. If you must use this, keep in mind it's inherently brittle (for
  606. example a mount under chroot won't update it), can't handle modern
  607. features like separate per-process filesystem namespaces, requires
  608. that your /etc directory be writable, tends to get easily confused
  609. by --bind or --move mounts, won't update if you rename a directory
  610. that contains a mount point, and so on. (In brief: avoid.)
  611. About the only reason to use this is if you've removed /proc from
  612. your kernel.
  613. source util-linux/volume_id/Config.in
  614. endmenu