xref: /linux/usr/Kconfig (revision fb9a4ca9820fd4d7c4906bd393004662451e273e)
1dbec4866SSam Ravnborg#
2dbec4866SSam Ravnborg# Configuration for initramfs
3dbec4866SSam Ravnborg#
4dbec4866SSam Ravnborg
5dbec4866SSam Ravnborgconfig INITRAMFS_SOURCE
6dbec4866SSam Ravnborg	string "Initramfs source file(s)"
7dbec4866SSam Ravnborg	default ""
8dbec4866SSam Ravnborg	help
9dbec4866SSam Ravnborg	  This can be either a single cpio archive with a .cpio suffix or a
10dbec4866SSam Ravnborg	  space-separated list of directories and files for building the
11dbec4866SSam Ravnborg	  initramfs image.  A cpio archive should contain a filesystem archive
12dbec4866SSam Ravnborg	  to be used as an initramfs image.  Directories should contain a
13dbec4866SSam Ravnborg	  filesystem layout to be included in the initramfs image.  Files
14dbec4866SSam Ravnborg	  should contain entries according to the format described by the
15dbec4866SSam Ravnborg	  "usr/gen_init_cpio" program in the kernel tree.
16dbec4866SSam Ravnborg
17dbec4866SSam Ravnborg	  When multiple directories and files are specified then the
18dbec4866SSam Ravnborg	  initramfs image will be the aggregate of all of them.
19dbec4866SSam Ravnborg
200979f378SAlexander E. Patrakov	  See <file:Documentation/early-userspace/README> for more details.
21dbec4866SSam Ravnborg
22dbec4866SSam Ravnborg	  If you are not sure, leave it blank.
23dbec4866SSam Ravnborg
24dbec4866SSam Ravnborgconfig INITRAMFS_ROOT_UID
25dbec4866SSam Ravnborg	int "User ID to map to 0 (user root)"
26dbec4866SSam Ravnborg	depends on INITRAMFS_SOURCE!=""
27dbec4866SSam Ravnborg	default "0"
28dbec4866SSam Ravnborg	help
29dbec4866SSam Ravnborg	  This setting is only meaningful if the INITRAMFS_SOURCE is
30dbec4866SSam Ravnborg	  contains a directory.  Setting this user ID (UID) to something
31dbec4866SSam Ravnborg	  other than "0" will cause all files owned by that UID to be
32dbec4866SSam Ravnborg	  owned by user root in the initial ramdisk image.
33dbec4866SSam Ravnborg
34dbec4866SSam Ravnborg	  If you are not sure, leave it set to "0".
35dbec4866SSam Ravnborg
36dbec4866SSam Ravnborgconfig INITRAMFS_ROOT_GID
37dbec4866SSam Ravnborg	int "Group ID to map to 0 (group root)"
38dbec4866SSam Ravnborg	depends on INITRAMFS_SOURCE!=""
39dbec4866SSam Ravnborg	default "0"
40dbec4866SSam Ravnborg	help
41dbec4866SSam Ravnborg	  This setting is only meaningful if the INITRAMFS_SOURCE is
42dbec4866SSam Ravnborg	  contains a directory.  Setting this group ID (GID) to something
43dbec4866SSam Ravnborg	  other than "0" will cause all files owned by that GID to be
44dbec4866SSam Ravnborg	  owned by group root in the initial ramdisk image.
45dbec4866SSam Ravnborg
46dbec4866SSam Ravnborg	  If you are not sure, leave it set to "0".
47*fb9a4ca9SH. Peter Anvin
48*fb9a4ca9SH. Peter Anvinconfig RD_GZIP
49*fb9a4ca9SH. Peter Anvin	bool "Initial ramdisk compressed using gzip"
50*fb9a4ca9SH. Peter Anvin	default y
51*fb9a4ca9SH. Peter Anvin	depends on BLK_DEV_INITRD=y
52*fb9a4ca9SH. Peter Anvin	select DECOMPRESS_GZIP
53*fb9a4ca9SH. Peter Anvin	help
54*fb9a4ca9SH. Peter Anvin	  Support loading of a gzip encoded initial ramdisk or cpio buffer.
55*fb9a4ca9SH. Peter Anvin	  If unsure, say Y.
56*fb9a4ca9SH. Peter Anvin
57*fb9a4ca9SH. Peter Anvinconfig RD_BZIP2
58*fb9a4ca9SH. Peter Anvin	bool "Initial ramdisk compressed using bzip2"
59*fb9a4ca9SH. Peter Anvin	default n
60*fb9a4ca9SH. Peter Anvin	depends on BLK_DEV_INITRD=y
61*fb9a4ca9SH. Peter Anvin	select DECOMPRESS_BZIP2
62*fb9a4ca9SH. Peter Anvin	help
63*fb9a4ca9SH. Peter Anvin	  Support loading of a bzip2 encoded initial ramdisk or cpio buffer
64*fb9a4ca9SH. Peter Anvin	  If unsure, say N.
65*fb9a4ca9SH. Peter Anvin
66*fb9a4ca9SH. Peter Anvinconfig RD_LZMA
67*fb9a4ca9SH. Peter Anvin	bool "Initial ramdisk compressed using lzma"
68*fb9a4ca9SH. Peter Anvin	default n
69*fb9a4ca9SH. Peter Anvin	depends on BLK_DEV_INITRD=y
70*fb9a4ca9SH. Peter Anvin	select DECOMPRESS_LZMA
71*fb9a4ca9SH. Peter Anvin	help
72*fb9a4ca9SH. Peter Anvin	  Support loading of a lzma encoded initial ramdisk or cpio buffer
73*fb9a4ca9SH. Peter Anvin	  If unsure, say N.
74