## SECTION=initramfs # # rules/klibc.in # menuconfig KLIBC bool prompt "klibc " help This feature contains a collection of programs that are linked against klibc. These duplicate some of the functionality of a regular Linux toolset, but are typically much smaller than their full-function counterparts. They are intended for inclusion in initramfs images and can do the network configuration outside the kernel and someting special before mounting the final root filesystem. if KLIBC choice prompt "link klibc programs" help You can select how to link the klibc programs. There are two possibilities, either links shared or static. When linking statically the klibc is linked into each program. Select this if you only have a few programs. On the other hand if you have many tools a dynamically linked klibc saves some space. config KLIBC_SHARED bool "shared" config KLIBC_STATIC bool "static" endchoice config KLIBC_DASH bool prompt "dash" help install a minimum shell (dash) under /bin/sh config KLIBC_INIT string prompt "create a link from /init to the specified program" default "/kinit" help A kernel will always start /init in the initramfs if not otherwise specified (see kernel parameter "init="). With this link ist possible to start any program you like. menu "klibc utils" config KLIBC_CAT bool prompt "cat" help This is a "cat" command. It gets installed into /bin/cat config KLIBC_CHROOT bool prompt "chroot" help This is a "chroot" command. It gets installed into /bin/chroot config KLIBC_CPIO bool prompt "cpio" help This is a "cpio" command. It gets installed into /bin/cpio config KLIBC_DD bool prompt "dd" help This is a "dd" command. It gets installed into /bin/dd config KLIBC_DMESG bool prompt "dmesg" help This is a "dmesg" command. It gets installed into /bin/dmesg config KLIBC_FALSE bool prompt "false" help This is a "false" command. It gets installed into /bin/false config KLIBC_HALT bool prompt "halt" help This is a "halt" command. It gets installed into /bin/halt config KLIBC_KILL bool prompt "kill" help This is a "kill" command. It gets installed into /bin/kill config KLIBC_LN bool prompt "ln" help This is a "ln" command. It gets installed into /bin/ln config KLIBC_LS bool prompt "ls" help This is a "ls" command. It gets installed into /bin/ln config KLIBC_MINIPS bool prompt "minips" help This is a "minips" command. It gets installed into /bin/minips config KLIBC_MKDIR bool prompt "mkdir" help This is a "mkdir" command. It gets installed into /bin/mkdir config KLIBC_MKFIFO bool prompt "mkfifo" help This is a "mkfifo" command. It gets installed into /bin/mkfifo config KLIBC_MKNOD bool prompt "mknod" help This is a "mknod" command. It gets installed into /bin/mknod config KLIBC_MOUNT bool prompt "mount" help This is a "mount" command. It gets installed into /bin/mount config KLIBC_NUKE bool prompt "nuke" help This is a "nuke" command. It gets installed into /bin/nuke config KLIBC_PIVOT_ROOT bool prompt "pivot_root" help This is a "pivot_root" command. It gets installed into /bin/pivot_root config KLIBC_POWEROFF bool prompt "poweroff" help This is a "poweroff" command. It gets installed into /bin/poweroff config KLIBC_READLINK bool prompt "readlink" help This is a "readlink" command. It gets installed into /bin/readlink config KLIBC_REBOOT bool prompt "reboot" help This is a "reboot" command. It gets installed into /bin/reboot config KLIBC_SLEEP bool prompt "sleep" help This is a "sleep" command. It gets installed into /bin/sleep config KLIBC_SYNC bool prompt "sync" help This is a "sync" command. It gets installed into /bin/sync config KLIBC_TRUE bool prompt "true" help This is a "true" command. It gets installed into /bin/true config KLIBC_UMOUNT bool prompt "umount" help This is a "umount" command. It gets installed into /bin/umount config KLIBC_UNAME bool prompt "uname" help This is a "uname" command. It gets installed into /bin/uname endmenu menu "klibc init" config KLIBC_FSTYPE bool prompt "fstype" help This is a "fstype" command. It gets installed into /bin/fstype config KLIBC_IPCONFIG bool prompt "ipconfig" help This is a "ipconfig" command. It gets installed into /bin/ipconfig config KLIBC_KINIT bool prompt "kinit" default y help It will be installed into /kinit and is intended to configure the network and mounting NFS based filesystems. It will be controlled by the standard kernel command line, anything else in /arch.cmd and anything else after a -- parameter. All three parts gets combined into one parameter list and will be used for configuration. config KLIBC_NFSMOUNT bool prompt "nfsmount" help This is a "nfsmount" command. It gets installed into /bin/nfsmount config KLIBC_RESUME bool prompt "resume" help This is a "resume" command. It gets installed into /bin/resume config KLIBC_RUN_INIT bool prompt "run-init" default y help It will be installed into /bin/run-init. Usage: exec run-init [-c /dev/console] /real-root /sbin/init "$@" This program should be called as the last thing in a shell script acting as /init in an initramfs; it does the following: - Delete all files in the initramfs; - Remounts /real-root onto the root filesystem; - Chroots; - Opens /dev/console; - Spawns the specified init program (with arguments.) endmenu endif