Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2019 09:00:40 +0000
From:      Colin Percival <cperciva@tarsnap.com>
To:        Ben Woods <woodsb02@gmail.com>, freebsd-cloud@freebsd.org
Subject:   Re: Error in EC2 firstboot script: "[: -lt: unexpected operator"
Message-ID:  <0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@email.amazonses.com>
In-Reply-To: <CAOc73CDHnmXa-CggP0909AwEc--EVVcZNXN%2BJtLV7jdj7N%2BV1w@mail.gmail.com>
References:  <CAOc73CDHnmXa-CggP0909AwEc--EVVcZNXN%2BJtLV7jdj7N%2BV1w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-09-18 06:06, Ben Woods wrote:
> I just deployed a new FreeBSD 12 instance on AWS (thanks again BTW), and I
> think I spotted an error in the firstboot script after a freebsd-update.
> 
> freebsd-update 738 - - Requesting reboot after installing updates.
> expr: syntax error
> [: -lt: unexpected operator
> 
> Do you think this is part of the firstboot script for EC2?
This is caused by the the ec2_ephemeralswap script; it broke when the SWAPMETA
VM zone went away.  I've disabled that script in the new AMI builds, but of
course if you have ec2_ephemeralswap_enable=YES in an instance you upgrade,
you'll see this error.

For now, just remove the ec2_ephemeralswap_enable line; some day I'll find
time to fix the script to work on recent FreeBSD (including working with the
newer "nvme" disks).

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000>