From fb88e10ff6b420052251e6a04621535ab407bc55 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Thu, 13 Mar 2008 22:52:25 +0000 Subject: [PATCH] Remove existing CONFIG_INITRAMFS_SOURCE line and write new one as well as CONFIG_INITRAMFS_ROOT_UID line git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@650 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- ChangeLog | 4 ++++ gen_initramfs.sh | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ff80b0b..f5594b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,10 @@ # Copyright 2006-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 13 Mar 2008; Andrew Gaffney gen_initramfs.sh: + Remove existing CONFIG_INITRAMFS_SOURCE line and write new one as well as + CONFIG_INITRAMFS_ROOT_UID line + 13 Mar 2008; Andrew Gaffney gen_initramfs.sh: Change sed delimeter diff --git a/gen_initramfs.sh b/gen_initramfs.sh index cc5cbb6..bf7df25 100644 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -496,7 +496,9 @@ 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 + sed -i '/^.*CONFIG_INITRAMFS_SOURCE=.*$/d' ${KERNEL_DIR}/.config + echo -e "CONFIG_INITRAMFS_SOURCE=\"${TMPDIR}/initramfs-${KV}.cpio.gz\"\nCONFIG_INITRAMFS_ROOT_UID=0" >> ${KERNEL_DIR}/.config fi if ! isTrue "${CMD_NOINSTALL}" -- 2.26.2