Syntax Error adding image vyos-1.2.0-rolling+201906181619-amd64.iso

adding system image vyos-1.2.0-rolling+201906181619-amd64.iso on existing VyOS instance (vyos-1.2.0-rolling+201906121251) on hyper-v, I get after MD5 checksum check the following syntax error:

/opt/vyatta/sbin/install-get-partition: line 314: syntax error near unexpected token `fi'
/opt/vyatta/sbin/install-get-partition: line 314: `    fi'

But not in other instance on AWS EC2.

I manually fixed line 311 in /opt/vyatta/sbin/install-get-partition and update was successfull.

    if [ -e /usr/sbin/update-initramfs.orig.initramfs-tools ]; then

‘; then’ was missing.

1 Like