From: Andrew Gaffney Date: Thu, 13 Mar 2008 21:11:24 +0000 (+0000) Subject: Instead of copying the initramfs into the kernel tree, we now sed the kconfig to... X-Git-Tag: v3.4.10.902~105 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5fcaaea2f8ff1611d479c3c13f44f52b32218672;p=genkernel.git Instead of copying the initramfs into the kernel tree, we now sed the kconfig to point CONFIG_INITRAMFS_SOURCE to the generated image git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@647 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- diff --git a/ChangeLog b/ChangeLog index 90db5e4..78f97dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 13 Mar 2008; Andrew Gaffney gen_initramfs.sh, + genkernel: + Instead of copying the initramfs into the kernel tree, we now sed the + kconfig to point CONFIG_INITRAMFS_SOURCE to the generated image + 13 Mar 2008; Andrew Gaffney sparc64/modules_load: Add scsi_wait_scan to sparc64's MODULES_SCSI diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 3fe7fa0..2d77d19 100644 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -494,7 +494,9 @@ create_initramfs() { if isTrue "${INTEGRATED_INITRAMFS}" then - cp ${TMPDIR}/initramfs-${KV} ${KERNEL_DIR}/usr/initramfs_data.cpio.gz +# cp ${TMPDIR}/initramfs-${KV} ${KERNEL_DIR}/usr/initramfs_data.cpio.gz + mv ${TMPDIR}/initramfs-${KV} ${TMPDIR}/initramfs-${KV}.cpio.gz + sed -i "s/^.*CONFIG_INITRAMFS_SOURCE=.*$/CONFIG_INITRAMFS_SOURCE=\"${TMPDIR}/initramfs-${KV}.cpio.gz\"/" ${KERNEL_CONFIG} fi if ! isTrue "${CMD_NOINSTALL}" diff --git a/genkernel b/genkernel index 30608b5..328011a 100755 --- a/genkernel +++ b/genkernel @@ -124,7 +124,6 @@ set_kernel_arch setup_cache_dir - dump_debugcache NORMAL=${BOLD} print_info 1 "Linux Kernel ${BOLD}${KV}${NORMAL} for ${BOLD}${ARCH}${NORMAL}..."