|
|
@ -802,10 +802,28 @@ create_initramfs() {
|
|
|
|
# The kernel will do a better job of it than us.
|
|
|
|
# The kernel will do a better job of it than us.
|
|
|
|
mv ${TMPDIR}/initramfs-${KV} ${TMPDIR}/initramfs-${KV}.cpio
|
|
|
|
mv ${TMPDIR}/initramfs-${KV} ${TMPDIR}/initramfs-${KV}.cpio
|
|
|
|
sed -i '/^.*CONFIG_INITRAMFS_SOURCE=.*$/d' ${KERNEL_DIR}/.config
|
|
|
|
sed -i '/^.*CONFIG_INITRAMFS_SOURCE=.*$/d' ${KERNEL_DIR}/.config
|
|
|
|
|
|
|
|
compress_config='INITRAMFS_COMPRESSION_NONE'
|
|
|
|
|
|
|
|
case ${compress_ext} in
|
|
|
|
|
|
|
|
gz) compress_config='INITRAMFS_COMPRESSION_GZIP' ;;
|
|
|
|
|
|
|
|
bz2) compress_config='INITRAMFS_COMPRESSION_BZIP2' ;;
|
|
|
|
|
|
|
|
lzma) compress_config='INITRAMFS_COMPRESSION_LZMA' ;;
|
|
|
|
|
|
|
|
xz) compress_config='INITRAMFS_COMPRESSION_XZ' ;;
|
|
|
|
|
|
|
|
lzo) compress_config='INITRAMFS_COMPRESSION_LZO' ;;
|
|
|
|
|
|
|
|
*) compress_config='INITRAMFS_COMPRESSION_NONE' ;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
# All N default except XZ, so there it gets used if the kernel does
|
|
|
|
|
|
|
|
# compression on it's own.
|
|
|
|
cat >>${KERNEL_DIR}/.config <<-EOF
|
|
|
|
cat >>${KERNEL_DIR}/.config <<-EOF
|
|
|
|
CONFIG_INITRAMFS_SOURCE="${TMPDIR}/initramfs-${KV}.cpio${compress_ext}"
|
|
|
|
CONFIG_INITRAMFS_SOURCE="${TMPDIR}/initramfs-${KV}.cpio${compress_ext}"
|
|
|
|
CONFIG_INITRAMFS_ROOT_UID=0
|
|
|
|
CONFIG_INITRAMFS_ROOT_UID=0
|
|
|
|
CONFIG_INITRAMFS_ROOT_GID=0
|
|
|
|
CONFIG_INITRAMFS_ROOT_GID=0
|
|
|
|
|
|
|
|
CONFIG_INITRAMFS_COMPRESSION_NONE=n
|
|
|
|
|
|
|
|
CONFIG_INITRAMFS_COMPRESSION_GZIP=n
|
|
|
|
|
|
|
|
CONFIG_INITRAMFS_COMPRESSION_BZIP2=n
|
|
|
|
|
|
|
|
CONFIG_INITRAMFS_COMPRESSION_LZMA=n
|
|
|
|
|
|
|
|
CONFIG_INITRAMFS_COMPRESSION_XZ=y
|
|
|
|
|
|
|
|
CONFIG_INITRAMFS_COMPRESSION_LZO=n
|
|
|
|
|
|
|
|
CONFIG_${compress_config}=y
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if isTrue "${COMPRESS_INITRD}"
|
|
|
|
if isTrue "${COMPRESS_INITRD}"
|
|
|
|