Use : as a regex separator instead of / since REAL_ROOT will have / in it

cleanup-cruft
Andrew Gaffney 16 years ago
parent 152d259700
commit 575c898ef7

@ -2,6 +2,9 @@
# Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney # Copyright 1999-2008 Gentoo Foundation; 2008 Chris Gianelloni, Andrew Gaffney
# Distributed under the GPL v2 # 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: 15 Dec 2008; Andrew Gaffney <agaffney@gentoo.org> gen_bootloader.sh:
Add check for existing grub.conf entry for kernel Add check for existing grub.conf entry for kernel

@ -459,7 +459,7 @@ append_auxilary() {
if [ -n "${REAL_ROOT}" ] if [ -n "${REAL_ROOT}" ]
then 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 fi
echo -n 'HWOPTS="$HWOPTS ' >> "${TEMP}/initramfs-aux-temp/etc/initrd.defaults" echo -n 'HWOPTS="$HWOPTS ' >> "${TEMP}/initramfs-aux-temp/etc/initrd.defaults"

Loading…
Cancel
Save