Date: Thu, 28 May 2020 20:02:52 +0200 (CEST) From: salvatorembartolotta@libero.it To: Masachika ISHIZUKA <ish@amail.plala.or.jp> Cc: questions@freebsd.org Subject: Re: rEFInd and _two_ FREEBSD systems on the same disk on the same UEFI laptop Message-ID: <541290807.815064.1590688972628@mail1.libero.it> In-Reply-To: <20200527.154010.456241527955787106.ish@amail.plala.or.jp> References: <1590634251.1341132.1590515827296@mail1.libero.it> <20200527.154010.456241527955787106.ish@amail.plala.or.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
> Il 27 maggio 2020 alle 8.40 Masachika ISHIZUKA <ish@amail.plala.or.jp> ha scritto: > > > > 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 > } > -- > Masachika ISHIZUKA Good afternoon, Thanks for your swift and to-the-point reply. Three remarks spring to my mind: 1) loader.efi is so smart as to manage, by _itself_, internal disks HDs/SSDs[1] (my laptop hosts a Samsung pm981 SDD),- no refind drivers for FreeBSD filesystems are needed; 2) loader.efi (about 500K in -CURRENT) is, so to speak, a full-fledged program, much smarter than loader(8); and I suppose loader.efi implements a _superset_ of the features of loader(8), documented in loader(8)'s man page; 3) There was a gotcha for my laptop. Setting the rootdev variable, apparently, made no difference and refind only booted the first system in the disk. I guess this has to do with the traditional (split) partition layout I had chosen for both of FreeBSD variants: 512K freebsd-boot[2] type partition, then \, swap, \var, \tmp, \home, and \usr. I reinstalled both variants with almost the same scheme, i.e. with _NO_ freebsd-boot type partition. The rootdev variable then just worked(TM). [1] I have yet to find a Linux distro able to detect my SSD out of the box(TM) - i.e. without requiring changes in the UEFI settings. [2] Such an example can be found in FreeBSD's handbook.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?541290807.815064.1590688972628>