From owner-freebsd-cloud@freebsd.org Wed Sep 18 16:55:57 2019 Return-Path: Delivered-To: freebsd-cloud@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A6780122FDE for ; Wed, 18 Sep 2019 16:55:57 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [174.136.98.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46YR243fQ9z4XST for ; Wed, 18 Sep 2019 16:55:56 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.206] (cpe-23-243-162-239.socal.res.rr.com [23.243.162.239]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id cb19d336 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Wed, 18 Sep 2019 16:55:49 +0000 (UTC) Subject: Re: Error in EC2 firstboot script: "[: -lt: unexpected operator" To: Ben Woods , Colin Percival , freebsd-cloud@freebsd.org References: From: Pete Wright Message-ID: <43554751-9b74-cef9-50e3-3c98614e7215@nomadlogic.org> Date: Wed, 18 Sep 2019 09:55:49 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 46YR243fQ9z4XST X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 174.136.98.114 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-4.91 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[239.162.243.23.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.61)[ip: (-9.35), ipnet: 174.136.96.0/20(-3.37), asn: 25795(-0.29), country: US(-0.05)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:25795, ipnet:174.136.96.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Sep 2019 16:55:57 -0000 On 9/18/19 6:08 AM, Ben Woods wrote: > On Wed, 18 Sep 2019 at 21:06, Ben Woods wrote: > >> Hi Colin, >> >> 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? I've been running 12.0-RELEASE ec2 instances for a while and have not noticed this.  I spot checked a system that was built way back in May and didn't see this issue.  I'll try to spin up an instance later today in my env and see if I can reproduce. -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA