diff options
author | sever-sever <v.gletenko@vyos.io> | 2020-09-26 10:36:55 +0000 |
---|---|---|
committer | sever-sever <v.gletenko@vyos.io> | 2020-09-26 10:38:40 +0000 |
commit | c512bead9cc38d9a2f031f0aa9cca012515c29ef (patch) | |
tree | 9e84b4be3e1cf41cf0623268766639f50159baed /scripts/install | |
parent | bdc36687bee89521b0387ff9726c2a29d52e8f6d (diff) | |
download | vyatta-cfg-system-c512bead9cc38d9a2f031f0aa9cca012515c29ef.tar.gz vyatta-cfg-system-c512bead9cc38d9a2f031f0aa9cca012515c29ef.zip |
cfg-system: T2902: Fix regex that doesnt allow X in image name
Diffstat (limited to 'scripts/install')
-rwxr-xr-x | scripts/install/install-image-existing | 2 |
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.$$ |