Fix sed delimiters in various scripts

Found by Steev - "," is not a safe delimiter to use in various
places. Switch to "|" instead.
This commit is contained in:
Steve McIntyre 2021-01-16 15:26:02 +00:00
parent e818685cd1
commit 34b8379db4
9 changed files with 18 additions and 15 deletions

3
debian/changelog vendored
View File

@ -14,6 +14,9 @@ debian-cd (3.1.32) UNRELEASED; urgency=medium
* tasks/bullseye/Debian-edu-full: Add winbind, freeradius and freeradius-krb5
packages.
[ Steev Klimaszewski ]
* Fix sed delimiters in various scripts
-- Steve McIntyre <93sam@debian.org> sat, 12 Dec 2020 03:12:36 +0100
debian-cd (3.1.31) unstable; urgency=medium

View File

@ -126,10 +126,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"

View File

@ -125,10 +125,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"

View File

@ -122,10 +122,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"

View File

@ -122,10 +122,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"

View File

@ -125,10 +125,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"

View File

@ -122,10 +122,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"

View File

@ -126,7 +126,7 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"

View File

@ -153,10 +153,10 @@ if [ -d boot$N/grub ] ; then
# Finally, belt and braces - fix up the %install% entries in grub
# in case they're still there
sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|\%install\%|$INSTALLDIR|g" $CDDIR/boot/grub/grub.cfg
# Substitute custom KERNEL_PARAMS into grub.cfg
sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
sed -i "s|/vmlinuz |/vmlinuz $KERNEL_PARAMS |g" $CDDIR/boot/grub/grub.cfg
else
echo " No EFI boot code for $ARCH on CD$N"