From: Andrew Gaffney Date: Mon, 15 Dec 2008 19:51:00 +0000 (-0600) Subject: Use : as a regex separator instead of / since REAL_ROOT will have / in it X-Git-Tag: v3.4.10.903~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=575c898ef7ba2b5945b409e8f22bd2f699f25068;p=genkernel.git Use : as a regex separator instead of / since REAL_ROOT will have / in it --- diff --git a/ChangeLog b/ChangeLog index 5513d4f..786eb8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Distributed under the GPL v2 + 15 Dec 2008; Andrew Gaffney gen_initramfs.sh: + Use : as a regex separator instead of / since REAL_ROOT will have / in it + 15 Dec 2008; Andrew Gaffney gen_bootloader.sh: Add check for existing grub.conf entry for kernel diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 703919e..ee4531d 100644 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -459,7 +459,7 @@ append_auxilary() { if [ -n "${REAL_ROOT}" ] then - sed -i "s/^REAL_ROOT=.*$/REAL_ROOT='${REAL_ROOT}'/" "${TEMP}/initramfs-aux-temp/etc/initrd.defaults" + sed -i "s:^REAL_ROOT=.*$:REAL_ROOT='${REAL_ROOT}':" "${TEMP}/initramfs-aux-temp/etc/initrd.defaults" fi echo -n 'HWOPTS="$HWOPTS ' >> "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"