From 575c898ef7ba2b5945b409e8f22bd2f699f25068 Mon Sep 17 00:00:00 2001
From: Andrew Gaffney <agaffney@gentoo.org>
Date: Mon, 15 Dec 2008 13:51:00 -0600
Subject: [PATCH] Use : as a regex separator instead of / since REAL_ROOT will
 have / in it

---
 ChangeLog        | 3 +++
 gen_initramfs.sh | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

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 <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
 
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"	
-- 
2.26.2