diff options
author | Andrew Gaffney <agaffney@gentoo.org> | 2008-03-13 21:11:24 +0000 |
---|---|---|
committer | Andrew Gaffney <agaffney@gentoo.org> | 2008-03-13 21:11:24 +0000 |
commit | 5fcaaea2f8ff1611d479c3c13f44f52b32218672 (patch) | |
tree | 0a048a94c374c2566d9ea4269317de028ddd1837 /gen_initramfs.sh | |
parent | Add scsi_wait_scan to sparc64's MODULES_SCSI (diff) | |
download | genkernel-5fcaaea2f8ff1611d479c3c13f44f52b32218672.tar.gz genkernel-5fcaaea2f8ff1611d479c3c13f44f52b32218672.tar.bz2 genkernel-5fcaaea2f8ff1611d479c3c13f44f52b32218672.zip |
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
Diffstat (limited to 'gen_initramfs.sh')
-rw-r--r-- | gen_initramfs.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 3fe7fa0c..2d77d19b 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}" |