just include fcntl.h not sys/fcntl.h
[oweals/busybox.git] / util-linux / Config.in
index dc6d8fdad29b83dfd54d5b58307503f2faae8a36..f76f3f4c44c8e936cfe22b65417054cc55d63af9 100644 (file)
@@ -27,7 +27,7 @@ config CONFIG_FBSET
          if you wish to enable the 'fbset' utility.
 
 config CONFIG_FEATURE_FBSET_FANCY
-       bool "  Turn on extra fbset options"
+       bool "Turn on extra fbset options"
        default n
        depends on CONFIG_FBSET
        help
@@ -37,7 +37,7 @@ config CONFIG_FEATURE_FBSET_FANCY
          options.
 
 config CONFIG_FEATURE_FBSET_READMODE
-       bool "  Turn on fbset readmode support"
+       bool "Turn on fbset readmode support"
        default n
        depends on CONFIG_FBSET
        help
@@ -73,14 +73,14 @@ config CONFIG_FDISK
          'disk slices' that are defined on a hard drive.
 
 config FDISK_SUPPORT_LARGE_DISKS
-       bool "  support over 4GB disks"
+       bool "support over 4GB disks"
        default y
        depends on CONFIG_FDISK
        help
          Enable this option to support large disks > 4GB.
 
 config CONFIG_FEATURE_FDISK_WRITABLE
-       bool "  Write support"
+       bool "Write support"
        default y
        depends on CONFIG_FDISK
        help
@@ -89,7 +89,7 @@ config CONFIG_FEATURE_FDISK_WRITABLE
          disabled, you will only be able to view the partition table.
 
 config CONFIG_FEATURE_AIX_LABEL
-       bool "  Support AIX disklabels"
+       bool "Support AIX disklabels"
        default n
        depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
        help
@@ -97,7 +97,7 @@ config CONFIG_FEATURE_AIX_LABEL
          Most people can safely leave this option disabled.
 
 config CONFIG_FEATURE_SGI_LABEL
-       bool "  Support SGI disklabels"
+       bool "Support SGI disklabels"
        default n
        depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
        help
@@ -105,7 +105,7 @@ config CONFIG_FEATURE_SGI_LABEL
          Most people can safely leave this option disabled.
 
 config CONFIG_FEATURE_SUN_LABEL
-       bool "  Support SUN disklabels"
+       bool "Support SUN disklabels"
        default n
        depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
        help
@@ -113,7 +113,7 @@ config CONFIG_FEATURE_SUN_LABEL
          Most people can safely leave this option disabled.
 
 config CONFIG_FEATURE_OSF_LABEL
-       bool "  Support BSD disklabels"
+       bool "Support BSD disklabels"
        default n
        depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
        help
@@ -121,7 +121,7 @@ config CONFIG_FEATURE_OSF_LABEL
          and define and edit BSD disk slices.
 
 config CONFIG_FEATURE_FDISK_ADVANCED
-       bool "  Support expert mode"
+       bool "Support expert mode"
        default n
        depends on CONFIG_FDISK && CONFIG_FEATURE_FDISK_WRITABLE
        help
@@ -164,7 +164,7 @@ comment "Minix filesystem support"
     depends on CONFIG_FSCK_MINIX || CONFIG_MKFS_MINIX
 
 config CONFIG_FEATURE_MINIX2
-       bool "  Support Minix fs v2 (fsck_minix/mkfs_minix)"
+       bool "Support Minix fs v2 (fsck_minix/mkfs_minix)"
        default y
        depends on CONFIG_FSCK_MINIX || CONFIG_MKFS_MINIX
        help
@@ -200,7 +200,7 @@ config CONFIG_HWCLOCK
          correct time when Linux is _not_ running.
 
 config CONFIG_FEATURE_HWCLOCK_LONGOPTIONS
-       bool "  Support long options (--hctosys,...)"
+       bool "Support long options (--hctosys,...)"
        default n
        depends on CONFIG_HWCLOCK
        help
@@ -209,12 +209,12 @@ config CONFIG_FEATURE_HWCLOCK_LONGOPTIONS
          then enable this option.
 
 config CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS
-       bool "  Use FHS /var/lib/hwclock/adjtime"
+       bool "Use FHS /var/lib/hwclock/adjtime"
        default y
        depends on CONFIG_HWCLOCK
        help
          Starting with FHS 2.3, the adjtime state file is supposed to exist
-         at /var/lib/hwclock/adjtime instead of /etc/adjtime.  If you wish 
+         at /var/lib/hwclock/adjtime instead of /etc/adjtime.  If you wish
          to use the FHS behavior, answer Y here, otherwise answer N for the
          classic /etc/adjtime path.
 
@@ -245,6 +245,36 @@ config CONFIG_LOSETUP
          file or block device, and to query the status of a loop device.  This
          version does not currently support enabling data encryption.
 
+config CONFIG_MDEV
+       bool "mdev"
+       default n
+       help
+         mdev is a mini-udev implementation: call it with -s to populate
+         /dev from /sys, then "echo /sbin/mdev > /proc/sys/kernel/hotplug" to
+         have it handle hotplug events afterwards.  Device names are taken
+         from sysfs.
+
+config CONFIG_FEATURE_MDEV_CONF
+       bool "Support /etc/mdev.conf"
+       default n
+       depends on CONFIG_MDEV
+       help
+         The mdev config file contains lines that look like:
+
+           hd[a-z][0-9]* 0:3 660
+
+         That's device name (with regex match), uid:gid, and permissions.
+
+         Optionally, that can be followed (on the same line) by an asterisk
+         and a command line to run after creating the corresponding device(s),
+         ala:
+
+           hdc root:cdrom 660  *ln -s hdc cdrom
+
+         Config file parsing stops on the first matching line.  If no config
+         entry is matched, devices are created with default 0:0 660.  (Make
+         the last line match .* to override this.)
+
 config CONFIG_MKSWAP
        bool "mkswap"
        default n
@@ -258,6 +288,16 @@ config CONFIG_MKSWAP
          Once you have created swap space using 'mkswap' you need to enable
          the swap space using the 'swapon' utility.
 
+config CONFIG_FEATURE_MKSWAP_V0
+       bool "version 0 support"
+       default n
+       depends on CONFIG_MKSWAP
+#      depends on CONFIG_MKSWAP && CONFIG_DEPRECATED
+       help
+         Enable support for the old v0 style.
+         If your kernel is older than 2.1.117, then v0 support is the
+         only option.
+
 config CONFIG_MORE
        bool "more"
        default n
@@ -269,7 +309,7 @@ config CONFIG_MORE
          any need to reading text files, you can leave this disabled.
 
 config CONFIG_FEATURE_USE_TERMIOS
-       bool "  Use termios to manipulate the screen"
+       bool "Use termios to manipulate the screen"
        default y
        depends on CONFIG_MORE
        help
@@ -279,6 +319,24 @@ config CONFIG_FEATURE_USE_TERMIOS
          will be unable to determine the current screen size, and will be
          unable to move the cursor.
 
+config CONFIG_MOUNT
+       bool "mount"
+       default n
+       help
+         All files and filesystems in Unix are arranged into one big directory
+         tree.  The 'mount' utility is used to graft a filesystem onto a
+         particular part of the tree.  A filesystem can either live on a block
+         device, or it can be accessible over the network, as is the case with
+         NFS filesystems.  Most people using BusyBox will also want to enable
+         the 'mount' utility.
+
+config CONFIG_FEATURE_MOUNT_NFS
+       bool "Support mounting NFS file systems"
+       default n
+       depends on CONFIG_MOUNT
+       help
+        Enable mounting of NFS file systems.
+
 config CONFIG_PIVOT_ROOT
        bool "pivot_root"
        default n
@@ -288,6 +346,9 @@ config CONFIG_PIVOT_ROOT
          of wild and crazy things with your Linux system and is far more
          powerful than 'chroot'.
 
+         Note: This is for initrd in linux 2.4.  Under initramfs (introduced
+         in linux 2.6) use switch_root instead.
+
 config CONFIG_RDATE
        bool "rdate"
        default n
@@ -303,6 +364,15 @@ config CONFIG_READPROFILE
        help
          This allows you to parse /proc/profile for basic profiling.
 
+config CONFIG_SETARCH
+       bool "setarch"
+       default n
+       help
+         The linux32 utility is used to create a 32bit environment for the
+         specified program (usually a shell).  It only makes sense to have
+         this util on a system that supports both 64bit and 32bit userland
+         (like amd64/x86, ppc64/ppc, sparc64/sparc, etc...).
+
 config CONFIG_SWAPONOFF
        bool "swaponoff"
        default n
@@ -314,23 +384,24 @@ config CONFIG_SWAPONOFF
          space.  If you are not using any swap space, you can leave this
          option disabled.
 
-config CONFIG_MOUNT
-       bool "mount"
+config CONFIG_SWITCH_ROOT
+       bool "switch_root"
        default n
        help
-         All files and filesystems in Unix are arranged into one big directory
-         tree.  The 'mount' utility is used to graft a filesystem onto a
-         particular part of the tree.  A filesystem can either live on a block
-         device, or it can be accessible over the network, as is the case with
-         NFS filesystems.  Most people using BusyBox will also want to enable
-         the 'mount' utility.
+         The switch_root utility is used from initramfs to select a new
+         root device.  Under initramfs, you have to use this instead of
+         pivot_root.  (Stop reading here if you don't care why.)
 
-config CONFIG_FEATURE_MOUNT_NFS
-       bool "  Support mounting NFS file systems"
-       default n
-       depends on CONFIG_MOUNT
-       help
-        Enable mounting of NFS file systems.
+         Booting with initramfs extracts a gzipped cpio archive into rootfs
+         (which is a variant of ramfs/tmpfs).  Because rootfs can't be moved
+         or unmounted*, pivot_root will not work from initramfs.  Instead,
+         switch_root deletes everything out of rootfs (including itself),
+         does a mount --move that overmounts rootfs with the new root, and
+         then execs the specified init program.
+
+         * Because the Linux kernel uses rootfs internally as the starting
+         and ending point for searching through the kernel's doubly linked
+         list of active mount points.  That's why.
 
 config CONFIG_UMOUNT
        bool "umount"
@@ -341,11 +412,18 @@ config CONFIG_UMOUNT
          the tool to use.  If you enabled the 'mount' utility, you almost certainly
          also want to enable 'umount'.
 
+config CONFIG_FEATURE_UMOUNT_ALL
+       bool "umount -a option"
+       default n
+       depends on CONFIG_UMOUNT
+       help
+         Support -a option to unmount all currently mounted filesystems.
+
 comment "Common options for mount/umount"
        depends on CONFIG_MOUNT || CONFIG_UMOUNT
 
 config CONFIG_FEATURE_MOUNT_LOOP
-       bool "  Support loopback mounts"
+       bool "Support loopback mounts"
        default n
        depends on CONFIG_MOUNT || CONFIG_UMOUNT
        help
@@ -354,14 +432,14 @@ config CONFIG_FEATURE_MOUNT_LOOP
          command will detect you are trying to mount a file instead of a block
          device, and transparently associate the file with a loopback device.
          The umount command will also free that loopback device.
-         
+
          You can still use the 'losetup' utility (to manually associate files
           with loop devices) if you need to do something advanced, such as
          specify an offset or cryptographic options to the loopback device.
          (If you don't want umount to free the loop device, use "umount -D".)
 
 config CONFIG_FEATURE_MTAB_SUPPORT
-       bool "  Support for the old /etc/mtab file"
+       bool "Support for the old /etc/mtab file"
        default n
        depends on CONFIG_MOUNT || CONFIG_UMOUNT
        help