From owner-freebsd-cloud@freebsd.org Mon Sep 16 03:47:09 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 76B72F1A09; Mon, 16 Sep 2019 03:47:09 +0000 (UTC) (envelope-from jttr@sdf.org) Received: from mx.sdf.org (mx.sdf.org [205.166.94.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.sdf.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Wscr1zZ6z44ht; Mon, 16 Sep 2019 03:47:07 +0000 (UTC) (envelope-from jttr@sdf.org) Received: from sdf.org (IDENT:jttr@sdf.lonestar.org [205.166.94.16]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id x8G3l5MR007047 (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits) verified NO); Mon, 16 Sep 2019 03:47:05 GMT Received: (from jttr@localhost) by sdf.org (8.15.2/8.12.8/Submit) id x8G3l4jL016000; Mon, 16 Sep 2019 03:47:04 GMT Date: Mon, 16 Sep 2019 03:47:04 GMT From: Jack the Trippr Message-Id: <201909160347.x8G3l4jL016000@sdf.org> To: cperciva@tarsnap.com, freebsd-arm@freebsd.org, freebsd-cloud@freebsd.org, jttr@sdf.org, ronald-lists@klop.ws Subject: Re: EC2 ARM64 AMIs In-Reply-To: <201908280428.x7S4SXOi018173@sdf.org> References: <201904032154.x33LslFs013075@repo.freebsd.org>, <01000169e6d2b1ad-38391cf5-5f11-4a6a-9dea-55c2de04ee45-000000@email.amazonses.com>, , <201908280428.x7S4SXOi018173@sdf.org> X-Rspamd-Queue-Id: 46Wscr1zZ6z44ht X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jttr@sdf.org has no SPF policy when checking 205.166.94.20) smtp.mailfrom=jttr@sdf.org X-Spamd-Result: default: False [1.18 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.16)[-0.155,0]; FROM_HAS_DN(0.00)[]; IP_SCORE(-0.41)[ip: (-1.31), ipnet: 205.166.94.0/24(-0.65), asn: 14361(-0.04), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_LONG(-0.79)[-0.788,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[20.94.166.205.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; DMARC_NA(0.00)[sdf.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; HFILTER_URL_ONLY(1.64)[0.74358974358974]; ASN(0.00)[asn:14361, ipnet:205.166.94.0/24, 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: Mon, 16 Sep 2019 03:47:09 -0000 freebsd-cloud-unsubscribe@freebsd.org From owner-freebsd-cloud@freebsd.org Wed Sep 18 13:06:23 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 C8F56FD246 for ; Wed, 18 Sep 2019 13:06:23 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-vs1-xe2c.google.com (mail-vs1-xe2c.google.com [IPv6:2607:f8b0:4864:20::e2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46YKxB59Kfz4JMw for ; Wed, 18 Sep 2019 13:06:22 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-vs1-xe2c.google.com with SMTP id m22so4378504vsl.9 for ; Wed, 18 Sep 2019 06:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=KjmgCyBbbsK/w1421EB102nQVif3fPSnsXqFe3ADW7E=; b=lP5VWfT5jphTMsTnudG0Flm6VpcznmZpG/uFB7y8cKnP2/ulYyOrR2CU0eVVDPPjm+ 3aAIAOkWlkJd4vnn/Z6yLZ7aCekudOIgj8ce/D6PctVa0LoVkkRJj7xHVCsozloovX5l dRLFRWHGt40FZWulko+HGZyCI6j2g9JeFijc/Zq/oTjuOqc/QfI+nN1JIsOQj/vbPH88 XSisvt3lDjeltd4lNUwW6z/ti4xLiLgBTxuiSq9uwtmjuU+luZgm49/PSiww87rv+DCJ zO7KumjdQNxPfRSbvlIBCZkjSjHgnlZuYXhZ2zAogEywFwB8JZe/5lK75o8YMHT0Prj3 yoXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KjmgCyBbbsK/w1421EB102nQVif3fPSnsXqFe3ADW7E=; b=rdRWIBxR0g7N99EGfbiq34epfeAy3upIzW9edwIS9YTAvzUzHG6t2rtyDgrrEcDzzp D1eaSeod3+FoRtAPm2UgsYVVRZs44hhB/BD8Ec/jYP/Xp/zkmd5EXGHZk0bBSzPOvRJJ jNbJ37LStX3p5Gm3ZpaX6HBJK5U4aBIyYQCN74uew4FIWKt3IJMGINTE8KMPkKldSLFf Ki22sEq5uME5u6EWW5yeCKUMSkuiG/Qnj8UMwhyQv8/BpLoeShm/uwvvbPHTEkz0z/JK pFFgCErrGPRuyB7AJVEpU1dGMQo/glUXRLra/XKq5N0yF7LOdwB4MkgjkUbVW7XZAwH5 /leQ== X-Gm-Message-State: APjAAAV8Gbpztf/ao1rQncqpGD8B8wVzQxiDERYRw13DpqQGGHdpNAtw rIu3g0N4DtDkGVsRn9VL6cgq0TvODugPrI2XZ6M= X-Google-Smtp-Source: APXvYqzXTI0GcZ3qUvFU0iyULS26G9qxgelht+BO849LfIDGduQ1/RZMXoz/5T6vL70rIaSMtv5wRHCOOYuVtSeHXZo= X-Received: by 2002:a67:6b85:: with SMTP id g127mr1316927vsc.53.1568811978821; Wed, 18 Sep 2019 06:06:18 -0700 (PDT) MIME-Version: 1.0 From: Ben Woods Date: Wed, 18 Sep 2019 21:06:29 +0800 Message-ID: Subject: Error in EC2 firstboot script: "[: -lt: unexpected operator" To: Colin Percival , freebsd-cloud@freebsd.org X-Rspamd-Queue-Id: 46YKxB59Kfz4JMw X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lP5VWfT5; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of woodsb02@gmail.com designates 2607:f8b0:4864:20::e2c as permitted sender) smtp.mailfrom=woodsb02@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-cloud@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[c.2.e.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-9.68), ipnet: 2607:f8b0::/32(-2.68), asn: 15169(-2.23), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 13:06:23 -0000 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? Regards, Ben -- From: Benjamin Woods woodsb02@gmail.com From owner-freebsd-cloud@freebsd.org Wed Sep 18 13:08:04 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 38BDFFD2A4 for ; Wed, 18 Sep 2019 13:08:04 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-ua1-x929.google.com (mail-ua1-x929.google.com [IPv6:2607:f8b0:4864:20::929]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46YKz72rrTz4JPD for ; Wed, 18 Sep 2019 13:08:02 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-ua1-x929.google.com with SMTP id r19so2293315uap.9 for ; Wed, 18 Sep 2019 06:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=/lAsuRADMHaNpTFJkQrYvu/bH25GxsuBOR/DUXyptA0=; b=oU/v3qNLqMFXR3C3F41qq/rUPgL1XDLD8b2Sw7lNbEaKXsL0VHb7VZmY+mNabWUvL7 +4LJUfW6/NK+isFJ/6aEg75NFK9di72elOThKEl10AbszjSnuyAszVEaKtnv7WqzfZMt eu8UyOW5yF6VFTuEFMyRAhlQ35E1gQczwxI3PvQVT2hTieJd6L1r/J8Sn8qBHMoTRdkY Y8s33NdJTg3/HNAFwWW8Cqub9XPxvsUbF55FgftD6pUJ2Uof5Kbek4mtxS+wc8YC5oBj Q4Xp7klV9qK1W7YX6rNa7+mutrw4SSAGQltkV7Ank1urjMlGcYM5dwozpOztUz4hcDgF 5weA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=/lAsuRADMHaNpTFJkQrYvu/bH25GxsuBOR/DUXyptA0=; b=SIHpNCeftTfZmRvL3TdXo7U1vQAg8OeFeMiC6eZniFLqMy87FdtdjH3lBDBSCNjTit PzPS2qHi2jxVFOyrZGEZKM8yk5BTJ8XX3Lbm7CQNLODcfjOMd3TZgNQuGQJIgZgG+Bmj Eb4+1BcdyFyZoBi23g5Gs1FIDZPVYHkEWpytxiuvCoubd48ia6WFxj+VN1mDgejB24ui GjJ4IR6i/KawFifjjdY3YNFrxwTIV9aYeQ1s2JJgEmjK3YgTIx4ox/8SRDXHupZ9zNS6 TYmzlq+dmgkxtPZsQ8UL00Rsp1l16ls89XjeGGqa7pdwp0gwhEeccmElsbSQmaSqc8y1 BPwQ== X-Gm-Message-State: APjAAAWqVWqNismFQVWjsDQTFtgs1lnAidt/Z4+IZSBNIbsc9jmTSEwf +oUPz3mhEQaVnXDLzDqFf3sQHvaPDlt3LReYH9LFDox/2Hg= X-Google-Smtp-Source: APXvYqwqdShnBUnuoma2T0VYdPeKWpm3xZs7x3riqKeMsYby2wasjoXpkl4EGZHw1QzA5t9k4Ohcm0CKNuMsq60mJtw= X-Received: by 2002:ab0:247:: with SMTP id 65mr2275095uas.13.1568812080285; Wed, 18 Sep 2019 06:08:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ben Woods Date: Wed, 18 Sep 2019 21:08:10 +0800 Message-ID: Subject: Re: Error in EC2 firstboot script: "[: -lt: unexpected operator" To: Colin Percival , freebsd-cloud@freebsd.org X-Rspamd-Queue-Id: 46YKz72rrTz4JPD X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=oU/v3qNL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of woodsb02@gmail.com designates 2607:f8b0:4864:20::929 as permitted sender) smtp.mailfrom=woodsb02@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-cloud@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; URI_COUNT_ODD(1.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[9.2.9.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-9.71), ipnet: 2607:f8b0::/32(-2.68), asn: 15169(-2.23), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 13:08:04 -0000 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? > > Regards, > Ben > > -- > From: Benjamin Woods > woodsb02@gmail.com > You can see a screenshot here: https://pasteboard.co/IxYQVzn.jpg Regards, Ben 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 From owner-freebsd-cloud@freebsd.org Thu Sep 19 09:00:43 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 1E8ECFBB4E for ; Thu, 19 Sep 2019 09:00:43 +0000 (UTC) (envelope-from 0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@amazonses.com) Received: from a8-26.smtp-out.amazonses.com (a8-26.smtp-out.amazonses.com [54.240.8.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46YrRG2P9kz4Rgh for ; Thu, 19 Sep 2019 09:00:42 +0000 (UTC) (envelope-from 0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1568883640; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=2m8eaEHJ/qx9SWufyODzUoRtL4oIHp5+fSHMIp+sg8I=; b=PaCCIcH/dzbXR5CCOsMH6tJ1QvKyLqxzDMFgeS62hCfoRvDV5Lpo66I68buPDWHM eJPxYRoyncPWmsA7VujY8Xu7fqLsotTJajCV5SmsSmNF90NhM16AgkJN0FZpTL3mIXj IFz0MKfJGNDuXqeeEm9Gd2O2frB//YFdWuvq1fIQ= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1568883640; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=2m8eaEHJ/qx9SWufyODzUoRtL4oIHp5+fSHMIp+sg8I=; b=JMMCman5izQ92eSMsh9NGSFuv3oPcySb7KfU+wFiMszf3eQk8mORuGUOhi83+6tU noRRZyna0KCvQQBiFB0sU6wLKfniic3py/HOCh+BJDG+ChalyoAtp1YrFNmU+H/S9A+ SAX2DACyTEoe9lUadneDR7tS+GQifcaoT/yXrsCE= Subject: Re: Error in EC2 firstboot script: "[: -lt: unexpected operator" To: Ben Woods , freebsd-cloud@freebsd.org References: From: Colin Percival Openpgp: preference=signencrypt Autocrypt: addr=cperciva@tarsnap.com; prefer-encrypt=mutual; keydata= mQGhBElrAAcRBACDfDys4ZtK+ErCJ1HAzYeteKpm3OEsvT/49AjUTLihkF79HhIKrCQU+1KC zv7BwHCMLb6hq30As9L7iFKG7n5QFLFC4Te/VcITUnWHMG/c3ViLOfJGvi+9/nOEHaM1dVJY D6tEp5yM1nHmVQpo9932j4KGuGFR0LhOK5IHXOSfGwCgxSFDPdgxe2OEjWxjGgY+oV3EafcD +JROXCTjlcQiG/OguQH4Vks3mhHfFnEppLxTkDuYgHZQiUtpcT9ssH5khgqoTyMar05OUdAj ZIhNbWDh4LgTj+7ZmvLhXT5Zxw8LX9d7T36aTB8XDQSenDqEtinMWOb0TCBBLbsB8EFG1WTT ESbZci9jJS5yhtktuZoY/eM8uXMD/3k4FWFO80VRRkELSp+XSy/VlSQjyi/rhl2nQq/oOA9F oJbDaB0yq9VNhxP+uFBzBWSqeIX0t1ZWLtNfVFr4TRP5hihI5ICrg/0OpqgisKsU2NFe9xyO hyJLYmfD8ebpDJ/9k30C7Iju9pVrwLm1QgS4S2fqJRcR+U4WbjvP7CgStCVDb2xpbiBQZXJj aXZhbCA8Y3BlcmNpdmFAdGFyc25hcC5jb20+iGEEExECACEFAklrALYCGwMHCwkIBwMCAQQV AggDBBYCAwECHgECF4AACgkQOM7KaQxqam6/igCgn+z2k3V5ggNppmWrZstt1U2lugsAoL7L wS9V9yLtil3oWmHtwpUqYruEuQINBElrAAcQCAD3ZLMIsP4CIDoJORg+YY0lqLVBgcnF7pFb 4Uy2+KvdWofN+DKH61rZLjgXXkNE9M4EQC1B4lGttBP8IY2gs41y3AUogGdyFbidq99rCBz7 LTsgARHwFxZoaHmXyiZLEU1QZuMqwPZV1mCviRhN5E3rRqYNXVcrnXAAuhBpvNyj/ntHvcDN 2/m+ochiuBYueU4kX3lHya7sOj+mTsndcWmQ9soOUyr8O0r/BG088bMn4qqtUw4dl5/pglXk jbl7uOOPinKf0WVd2r6M0wLPJCD4NPHrCWRLLLAjwfjrtoSRvXxDbXhCdgGBa72+K8eYLzVs hgq7tJOoBWzjVK6XRxR7AAMGB/9Mo3iJ2DxqDecd02KCB5BsFDICbJGhPltU7FwrtbC7djSb XUrwsEVLHi4st4cbdGNCWCrp0BRezXZKohKnNAPFOTK++ZfgeKxrV2sJod+Q9RILF86tQ4XF 7A7Yme5hy92t/WgiU4vc/fWbgP8gV/19f8nunaT2E9NSa70mZFjZNu4iuwThoUUO5CV3Wo0Y UISsnRK8XD1+LR3A2qVyLiFRwh/miC1hgLFCTGCQ3GLxZeZzIpYSlGdQJ0L5lixW5ZQD9r1I 8i/8zhE6qRFAM0upUMI3Gt1Oq2w03DiXrZU0Fu/R8Rm8rlnkQKA+95mRTUq1xL5P5NZIi4gJ Z569OPMFiEkEGBECAAkFAklrAAcCGwwACgkQOM7KaQxqam41igCfbaldnFTu5uAdrnrghESv EI3CAo8AoLkNMks1pThl2BJNRm4CtTK9xZeH Message-ID: <0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@email.amazonses.com> Date: Thu, 19 Sep 2019 09:00:40 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2019.09.19-54.240.8.26 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-Rspamd-Queue-Id: 46YrRG2P9kz4Rgh X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tarsnap.com header.s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57 header.b=PaCCIcH/; dkim=pass header.d=amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=JMMCman5; dmarc=none; spf=pass (mx1.freebsd.org: domain of 0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@amazonses.com designates 54.240.8.26 as permitted sender) smtp.mailfrom=0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@amazonses.com X-Spamd-Result: default: False [-1.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[tarsnap.com:s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57,amazonses.com:s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:54.240.0.0/18]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[tarsnap.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[tarsnap.com:+,amazonses.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[26.8.240.54.list.dnswl.org : 127.0.15.0]; FORGED_SENDER(0.30)[cperciva@tarsnap.com,0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@amazonses.com]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.01)[ip: (-2.07), ipnet: 54.240.8.0/21(-4.62), asn: 14618(-3.30), country: US(-0.05)]; ASN(0.00)[asn:14618, ipnet:54.240.8.0/21, country:US]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; FROM_NEQ_ENVFROM(0.00)[cperciva@tarsnap.com, 0100016d48c08901-935a71a1-7015-4dec-9bd0-a863ecaa2903-000000@amazonses.com] 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: Thu, 19 Sep 2019 09:00:43 -0000 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