Use : as a regex separator instead of / since REAL_ROOT will have / in it
authorAndrew Gaffney <agaffney@gentoo.org>
Mon, 15 Dec 2008 19:51:00 +0000 (13:51 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Mon, 15 Dec 2008 19:51:00 +0000 (13:51 -0600)
ChangeLog
gen_initramfs.sh

index 5513d4f9f7527880840cd5aa177b32c79d77d766..786eb8e3ffcd788b28e2c3b507e135f757e13342 100644 (file)
--- 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 <agaffney@gentoo.org> gen_initramfs.sh:
+  Use : as a regex separator instead of / since REAL_ROOT will have / in it
+
   15 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> gen_bootloader.sh:
   Add check for existing grub.conf entry for kernel
 
index 703919e897733d10a784d64107432adc2bf92e3d..ee4531d18bcf849d182b3100395d51203ab310d7 100644 (file)
@@ -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"