2005-08-11 01:44:50 +07:00
|
|
|
#
|
|
|
|
# Configuration for initramfs
|
|
|
|
#
|
|
|
|
|
|
|
|
config INITRAMFS_SOURCE
|
|
|
|
string "Initramfs source file(s)"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
This can be either a single cpio archive with a .cpio suffix or a
|
|
|
|
space-separated list of directories and files for building the
|
|
|
|
initramfs image. A cpio archive should contain a filesystem archive
|
|
|
|
to be used as an initramfs image. Directories should contain a
|
|
|
|
filesystem layout to be included in the initramfs image. Files
|
|
|
|
should contain entries according to the format described by the
|
|
|
|
"usr/gen_init_cpio" program in the kernel tree.
|
|
|
|
|
|
|
|
When multiple directories and files are specified then the
|
|
|
|
initramfs image will be the aggregate of all of them.
|
|
|
|
|
2007-03-16 20:01:45 +07:00
|
|
|
See <file:Documentation/early-userspace/README> for more details.
|
2005-08-11 01:44:50 +07:00
|
|
|
|
|
|
|
If you are not sure, leave it blank.
|
|
|
|
|
|
|
|
config INITRAMFS_ROOT_UID
|
|
|
|
int "User ID to map to 0 (user root)"
|
|
|
|
depends on INITRAMFS_SOURCE!=""
|
|
|
|
default "0"
|
|
|
|
help
|
|
|
|
This setting is only meaningful if the INITRAMFS_SOURCE is
|
|
|
|
contains a directory. Setting this user ID (UID) to something
|
|
|
|
other than "0" will cause all files owned by that UID to be
|
|
|
|
owned by user root in the initial ramdisk image.
|
|
|
|
|
|
|
|
If you are not sure, leave it set to "0".
|
|
|
|
|
|
|
|
config INITRAMFS_ROOT_GID
|
|
|
|
int "Group ID to map to 0 (group root)"
|
|
|
|
depends on INITRAMFS_SOURCE!=""
|
|
|
|
default "0"
|
|
|
|
help
|
|
|
|
This setting is only meaningful if the INITRAMFS_SOURCE is
|
|
|
|
contains a directory. Setting this group ID (GID) to something
|
|
|
|
other than "0" will cause all files owned by that GID to be
|
|
|
|
owned by group root in the initial ramdisk image.
|
|
|
|
|
|
|
|
If you are not sure, leave it set to "0".
|
2009-01-07 15:03:49 +07:00
|
|
|
|
|
|
|
config RD_GZIP
|
2014-12-13 07:58:03 +07:00
|
|
|
bool "Support initial ramdisks compressed using gzip"
|
2009-03-29 05:49:08 +07:00
|
|
|
depends on BLK_DEV_INITRD
|
2014-12-13 07:58:03 +07:00
|
|
|
default y
|
2009-01-07 15:03:49 +07:00
|
|
|
select DECOMPRESS_GZIP
|
|
|
|
help
|
|
|
|
Support loading of a gzip encoded initial ramdisk or cpio buffer.
|
|
|
|
If unsure, say Y.
|
|
|
|
|
|
|
|
config RD_BZIP2
|
2014-12-13 07:58:03 +07:00
|
|
|
bool "Support initial ramdisks compressed using bzip2"
|
|
|
|
default y
|
2009-03-29 05:49:08 +07:00
|
|
|
depends on BLK_DEV_INITRD
|
2009-01-07 15:03:49 +07:00
|
|
|
select DECOMPRESS_BZIP2
|
|
|
|
help
|
|
|
|
Support loading of a bzip2 encoded initial ramdisk or cpio buffer
|
|
|
|
If unsure, say N.
|
|
|
|
|
|
|
|
config RD_LZMA
|
2014-12-13 07:58:03 +07:00
|
|
|
bool "Support initial ramdisks compressed using LZMA"
|
|
|
|
default y
|
2009-03-29 05:49:08 +07:00
|
|
|
depends on BLK_DEV_INITRD
|
2009-01-07 15:03:49 +07:00
|
|
|
select DECOMPRESS_LZMA
|
|
|
|
help
|
2009-03-29 06:10:59 +07:00
|
|
|
Support loading of a LZMA encoded initial ramdisk or cpio buffer
|
2009-01-07 15:03:49 +07:00
|
|
|
If unsure, say N.
|
2009-02-20 04:43:51 +07:00
|
|
|
|
decompressors: add boot-time XZ support
This implements the API defined in <linux/decompress/generic.h> which is
used for kernel, initramfs, and initrd decompression. This patch together
with the first patch is enough for XZ-compressed initramfs and initrd;
XZ-compressed kernel will need arch-specific changes.
The buffering requirements described in decompress_unxz.c are stricter
than with gzip, so the relevant changes should be done to the
arch-specific code when adding support for XZ-compressed kernel.
Similarly, the heap size in arch-specific pre-boot code may need to be
increased (30 KiB is enough).
The XZ decompressor needs memmove(), memeq() (memcmp() == 0), and
memzero() (memset(ptr, 0, size)), which aren't available in all
arch-specific pre-boot environments. I'm including simple versions in
decompress_unxz.c, but a cleaner solution would naturally be nicer.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 08:01:23 +07:00
|
|
|
config RD_XZ
|
2014-12-13 07:58:03 +07:00
|
|
|
bool "Support initial ramdisks compressed using XZ"
|
decompressors: add boot-time XZ support
This implements the API defined in <linux/decompress/generic.h> which is
used for kernel, initramfs, and initrd decompression. This patch together
with the first patch is enough for XZ-compressed initramfs and initrd;
XZ-compressed kernel will need arch-specific changes.
The buffering requirements described in decompress_unxz.c are stricter
than with gzip, so the relevant changes should be done to the
arch-specific code when adding support for XZ-compressed kernel.
Similarly, the heap size in arch-specific pre-boot code may need to be
increased (30 KiB is enough).
The XZ decompressor needs memmove(), memeq() (memcmp() == 0), and
memzero() (memset(ptr, 0, size)), which aren't available in all
arch-specific pre-boot environments. I'm including simple versions in
decompress_unxz.c, but a cleaner solution would naturally be nicer.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 08:01:23 +07:00
|
|
|
depends on BLK_DEV_INITRD
|
2014-12-13 07:58:03 +07:00
|
|
|
default y
|
decompressors: add boot-time XZ support
This implements the API defined in <linux/decompress/generic.h> which is
used for kernel, initramfs, and initrd decompression. This patch together
with the first patch is enough for XZ-compressed initramfs and initrd;
XZ-compressed kernel will need arch-specific changes.
The buffering requirements described in decompress_unxz.c are stricter
than with gzip, so the relevant changes should be done to the
arch-specific code when adding support for XZ-compressed kernel.
Similarly, the heap size in arch-specific pre-boot code may need to be
increased (30 KiB is enough).
The XZ decompressor needs memmove(), memeq() (memcmp() == 0), and
memzero() (memset(ptr, 0, size)), which aren't available in all
arch-specific pre-boot environments. I'm including simple versions in
decompress_unxz.c, but a cleaner solution would naturally be nicer.
Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 08:01:23 +07:00
|
|
|
select DECOMPRESS_XZ
|
|
|
|
help
|
|
|
|
Support loading of a XZ encoded initial ramdisk or cpio buffer.
|
|
|
|
If unsure, say N.
|
|
|
|
|
2010-01-09 05:42:46 +07:00
|
|
|
config RD_LZO
|
2014-12-13 07:58:03 +07:00
|
|
|
bool "Support initial ramdisks compressed using LZO"
|
|
|
|
default y
|
2010-01-09 05:42:46 +07:00
|
|
|
depends on BLK_DEV_INITRD
|
|
|
|
select DECOMPRESS_LZO
|
|
|
|
help
|
|
|
|
Support loading of a LZO encoded initial ramdisk or cpio buffer
|
|
|
|
If unsure, say N.
|
|
|
|
|
2013-07-09 06:01:46 +07:00
|
|
|
config RD_LZ4
|
2014-12-13 07:58:03 +07:00
|
|
|
bool "Support initial ramdisks compressed using LZ4"
|
|
|
|
default y
|
2013-07-09 06:01:46 +07:00
|
|
|
depends on BLK_DEV_INITRD
|
|
|
|
select DECOMPRESS_LZ4
|
|
|
|
help
|
|
|
|
Support loading of a LZ4 encoded initial ramdisk or cpio buffer
|
|
|
|
If unsure, say N.
|