From owner-freebsd-current@freebsd.org Sat May 4 03:34:29 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 121B015A4C24 for ; Sat, 4 May 2019 03:34:29 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 397976EE21; Sat, 4 May 2019 03:34:23 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id x443XfER029071 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 3 May 2019 20:33:42 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id x443Xf2b029070; Fri, 3 May 2019 20:33:41 -0700 (PDT) (envelope-from fbsd) Date: Fri, 3 May 2019 20:33:41 -0700 From: bob prohaska To: "Rodney W. Grimes" Cc: Warner Losh , Glen Barber , Enji Cooper , Alan Somers , David Boyd , FreeBSD CURRENT Subject: Re: New vm-image size is much smaller than previos Message-ID: <20190504033340.GB26932@www.zefox.net> References: <201905040239.x442d03h095198@gndrsh.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201905040239.x442d03h095198@gndrsh.dnsmgr.net> User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 397976EE21 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.45 / 15.00]; ARC_NA(0.00)[]; WWW_DOT_DOMAIN(0.50)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.78)[0.780,0]; IP_SCORE(0.11)[ip: (0.43), ipnet: 50.1.16.0/20(0.22), asn: 7065(-0.03), country: US(-0.06)]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.79)[0.785,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: www.zefox.net]; NEURAL_SPAM_LONG(0.89)[0.887,0]; RCPT_COUNT_SEVEN(0.00)[7]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MID_RHS_WWW(0.50)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 May 2019 03:34:29 -0000 On Fri, May 03, 2019 at 07:39:00PM -0700, Rodney W. Grimes wrote: > > On Fri, May 3, 2019, 7:42 PM bob prohaska wrote: > > > > > On Fri, May 03, 2019 at 11:06:15AM -0700, Rodney W. Grimes wrote: > > > > -- Start of PGP signed section. > > > > > On Fri, May 03, 2019 at 10:12:58AM -0700, Enji Cooper wrote: > > > > > > > > > > > > > On May 3, 2019, at 9:57 AM, Alan Somers > > > wrote: > > > > > > > > > > > > > > See r346959. Before first boot, you should expand the image up to > > > > > > > whatever size you want. growfs(8) will automatically expand the > > > file > > > > > > > system. > > > > > > > -Alan > > > > > > > > > > > > > > On Fri, May 3, 2019 at 10:32 AM David Boyd > > > wrote: > > > > > > >> > > > > > > >> The vm-image for 13.0-CURRENT > > > > > > >> > > > > > > >> FreeBSD-13.0-CURRENT-amd64-20190503-r347033.vmdk > > > > > > >> > > > > > > >> is only 4.0 GB in size. Previous images were about 31.0 GB. > > > > > > >> > > > > > > >> This smaller image doesn't leave much room to add packages and > > > other > > > > > > >> customizations. > > > > > > > > > > > > This probably deserves a release note. > > > > > > > > > > It will certainly be mentioned in the 11.3 release notes. > > > > > > > > And those running head snapshots without reading commit messages > > > > are likely to have lots of foot shooting. > > > > > > > > > Glen > > > > -- > > > > Rod Grimes > > > rgrimes@freebsd.org > > > > > > At the risk of being branded a wishful thinker, a firstboot script that > > > asked the user for some configuration information would be a great help > > > to both new and experienced foot-shooters. I'm thinking of Raspberry Pi, > > > but perhaps it applies to non-embedded platforms also. > > > > > > > That's not a bad idea... we could press bsdinstall into service for that > > perhaps... we already expand the partition / filesystem to match the media > > size... > > As asommers already pointed out a) we already do the for real media > like on the rasberry pi's, etc all in that on first boot they do a > growfs to fill the real media up with the file system. > I misunderstood the significance of "vm-image", thinking it was the same as a bootable microSD image. Apologies for the blunder. My thoughts are about physical media. In that situation the default growfs on firstboot is a real handicap. It makes difficult any local customization of the microSD card, in particular adding a swap partition. A Pi2 is sort of usable without swap, a Pi3 is badly hampered with no swap. Having the existence of /firstboot trigger a configuration script that sets up swap, storage, accounts and network would be a great aid to new users (and old users with imperfect memories). A man page for firstboot would be useful in any case. "What's that empty file supposed to do?" is a very natural question. Unfortunately, by the time the question is discovered it's too late to ask, and the user has to start over. There are references to firstboot in man rc, but that's a very hard way to answer a relatively simple question. Working around /firstboot requires a serial console and considerable patience, at least on a physical Raspberry Pi 2 or 3. Thanks for reading, bob prohaska