From owner-freebsd-questions@freebsd.org Wed May 27 13:32:43 2020 Return-Path: Delivered-To: freebsd-questions@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 733D8332B2A for ; Wed, 27 May 2020 13:32:43 +0000 (UTC) (envelope-from per@hedeland.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 49XBbH1lwlz4NTl for ; Wed, 27 May 2020 13:32:43 +0000 (UTC) (envelope-from per@hedeland.org) Received: by mailman.nyi.freebsd.org (Postfix) id 3C1DD332AB4; Wed, 27 May 2020 13:32:43 +0000 (UTC) Delivered-To: questions@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 3BD3F332B98 for ; Wed, 27 May 2020 13:32:43 +0000 (UTC) (envelope-from per@hedeland.org) Received: from mailout.easydns.com (mailout.easydns.com [64.68.202.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49XBbG2Szlz4NPL for ; Wed, 27 May 2020 13:32:41 +0000 (UTC) (envelope-from per@hedeland.org) Received: from localhost (localhost [127.0.0.1]) by mailout.easydns.com (Postfix) with ESMTP id 3549DC0D86; Wed, 27 May 2020 13:32:41 +0000 (UTC) Received: from mailout.easydns.com ([127.0.0.1]) by localhost (emo12-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mFUeAac4mU7y; Wed, 27 May 2020 13:32:41 +0000 (UTC) Received: from hedeland.org (81-228-157-209-no289.tbcn.telia.com [81.228.157.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easydns.com (Postfix) with ESMTPSA id 1C552C0D7F; Wed, 27 May 2020 13:32:37 +0000 (UTC) Received: from pluto.hedeland.org (pluto.hedeland.org [10.1.1.5]) by tellus.hedeland.org (8.15.2/8.15.2) with ESMTPS id 04RDWWOl019002 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 27 May 2020 15:32:33 +0200 (CEST) (envelope-from per@hedeland.org) Subject: Re: rEFInd and _two_ FREEBSD systems on the same disk on the same UEFI laptop To: Masachika ISHIZUKA Cc: salvatorembartolotta@libero.it, questions@freebsd.org References: <1590634251.1341132.1590515827296@mail1.libero.it> <20200527.154010.456241527955787106.ish@amail.plala.or.jp> From: Per Hedeland Message-ID: Date: Wed, 27 May 2020 15:32:32 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: <20200527.154010.456241527955787106.ish@amail.plala.or.jp> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49XBbG2Szlz4NPL X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of per@hedeland.org has no SPF policy when checking 64.68.202.10) smtp.mailfrom=per@hedeland.org X-Spamd-Result: default: False [-0.12 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RCVD_IN_DNSWL_LOW(-0.10)[64.68.202.10:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.90)[-0.896]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[hedeland.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.07)[0.070]; RECEIVED_SPAMHAUS_PBL(0.00)[81.228.157.209:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.10)[-0.096]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:16686, ipnet:64.68.200.0/22, country:CA]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_CC(0.00)[libero.it,freebsd.org] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2020 13:32:43 -0000 On 2020-05-27 08:40, Masachika ISHIZUKA wrote: >> Has anyone installed two BSD (say -RELEASE and -STABLE) on the same disk on the same UEFI machine using rEFInd? > > I'm using rEFInd and /dev/ada0p9 is / for 12.1-release and > /dev/ada0p10 is / for 13-current. > > I copied /boot/loader.efi (from current) to /EFI/freebsd/loader.efi. > > /EFI/refind/refind.conf is like the following. > > menuentry FreeBSD-release { > loader /EFI/freebsd/loader.efi > options "rootdev=disk0p9 autoboot_delay=1" > icon /EFI/refind/icons/os_freebsd-release.png > } > > menuentry FreeBSD-current { > loader /EFI/freebsd/loader.efi > options "rootdev=disk0p10 autoboot_delay=1" > icon /EFI/refind/icons/os_freebsd-current.png > } Brilliant! I successfully replaced my ugly hack with this approach. Thanks! --Per