From af3fd101f0b6f3856521d557c322e7aaa64e0cac Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Thu, 13 Mar 2008 22:34:38 +0000 Subject: [PATCH] Change sed delimeter git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@649 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- ChangeLog | 3 +++ gen_initramfs.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f3d2805..ff80b0b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 13 Mar 2008; Andrew Gaffney gen_initramfs.sh: + Change sed delimeter + 13 Mar 2008; Andrew Gaffney gen_initramfs.sh: We should edit the copy of the kconfig instead of the source file diff --git a/gen_initramfs.sh b/gen_initramfs.sh index e5710c0..cc5cbb6 100644 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -496,7 +496,7 @@ create_initramfs() { then # 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_DIR}/.config + sed -i "s|^.*CONFIG_INITRAMFS_SOURCE=.*$|CONFIG_INITRAMFS_SOURCE=\"${TMPDIR}/initramfs-${KV}.cpio.gz\"|" ${KERNEL_DIR}/.config fi if ! isTrue "${CMD_NOINSTALL}" -- 2.26.2