From owner-freebsd-current@freebsd.org Wed Aug 3 03:47:18 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64BD1BAB0AE for ; Wed, 3 Aug 2016 03:47:18 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 534D617B3 for ; Wed, 3 Aug 2016 03:47:17 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from zeppelin.tachypleus.net (ma45036d0.tmodns.net [208.54.80.164]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id u733lDU8010920 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Tue, 2 Aug 2016 20:47:15 -0700 Subject: Re: uuid/label based fstab during bsdinstall To: freebsd-current@freebsd.org References: From: Nathan Whitehorn Message-ID: <8f929142-8956-2cc6-bb10-3fcb2983702c@freebsd.org> Date: Tue, 2 Aug 2016 20:47:13 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVaCJtqxK/CEzKdB0PRgzzcMKlLdA50r0CaIdVB1FnhGwu/ZB5qmT9dsKXk7NE98yc5GHWc+A1acmrKA5k9dtRr13IZiL153kPE= X-Sonic-ID: C;zB7n9ixZ5hGNsaDx2xNB0g== M;pPq+9yxZ5hGNsaDx2xNB0g== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Wed, 03 Aug 2016 03:47:18 -0000 Unfortunately, the glabel and (especially) GPT partition ID labelling has in-kernel race conditions that make it impossible to rely on in the installer. This has been an open problem since FreeBSD 9; hopefully it will be solved soon. -Nathan On 08/02/16 20:35, Alive 4ever wrote: > Greetings, everyone. > > I am testing FreeBSD 11.0-BETA3 release on a virtual machine (qemu, > with > edkII ovmf). > > Currently, bsdinstall creates device path based block device driver > scheme instead of uuid/label based device scheme. > > bsdinstall-generated fstab has some drawback. For example, when > switching from ide to virtio on qemu, freebsd can't find its root > partition because the path name has changed from 'da0' to 'vtbd0'. > > I suggest adding an option during bsdinstall to select fstab block > device pointer scheme. User will choose a scheme based on fs-uuid, > fs-label, geom label (glabel), gpt id, gpt label, or driver based > numbering scheme (da0/vtbd0 style). > > If fstab scheme choice is too hard to implement, it would be better to > just switch default fstab generation to label based scheme, so that > FreeBSD kernel will be able to find its rootfs in different > circumstances. > > I hope this will be implemented soon. > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >