From 2a4f4b09019489e5b6ba26a8d0c26bb7895cadcb Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Thu, 19 Sep 2013 13:00:44 +0200 Subject: [PATCH] gen_initramfs: fix here-document (EOF handling) --- gen_initramfs.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 7a9cbeb..75d4d53 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1005,18 +1005,18 @@ create_initramfs() { 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 - CONFIG_INITRAMFS_SOURCE="${TMPDIR}/initramfs-${KV}.cpio${compress_ext}" - CONFIG_INITRAMFS_ROOT_UID=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 + cat >> ${KERNEL_DIR}/.config << EOF +CONFIG_INITRAMFS_SOURCE="${TMPDIR}/initramfs-${KV}.cpio${compress_ext}" +CONFIG_INITRAMFS_ROOT_UID=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 else if isTrue "${COMPRESS_INITRD}" then