summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-09-26 10:36:55 +0000
committerChristian Poessinger <christian@poessinger.com>2020-09-26 16:50:58 +0200
commita57f75313cf66d6870041ff0fbbda5e67917f0ad (patch)
treec16a52457b30c8de022767cbe42dd59fa004d821
parentcf7324dcf7748567d872db886e97ad26f191fd4b (diff)
downloadvyatta-cfg-system-a57f75313cf66d6870041ff0fbbda5e67917f0ad.tar.gz
vyatta-cfg-system-a57f75313cf66d6870041ff0fbbda5e67917f0ad.zip
cfg-system: T2902: Fix regex that doesnt allow X in image name
(cherry picked from commit c512bead9cc38d9a2f031f0aa9cca012515c29ef)
-rwxr-xr-xscripts/install/install-image-existing2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing
index 4fdfeda2..dab45379 100755
--- a/scripts/install/install-image-existing
+++ b/scripts/install/install-image-existing
@@ -268,7 +268,7 @@ if [ -e "$DEF_GRUB" ]; then
cp $DEF_GRUB $def_grub_vers
sed -i "s/menuentry \"VyOS.*(/menuentry \"VyOS $NEWNAME (/" $def_grub_vers
sed -i "s/menuentry \"Lost password change.*(/menuentry \"Lost password change $NEWNAME (/" $def_grub_vers
- sed -i "sX/boot/[A-Za-z0-9\.\-]*X/boot/${NEWNAME}Xg" $def_grub_vers
+ sed -i "s%/boot/[A-Za-z0-9\.\-]*%/boot/${NEWNAME}%g" $def_grub_vers
old_grub_cfg=$BOOT_DIR/grub/grub.cfg
new_grub_cfg=/tmp/grub.cfg.$$