Re: loader.efi of 13.1

From: Tomoaki AOKI <junchoon_at_dec.sakura.ne.jp>
Date: Thu, 01 Sep 2022 23:50:39 UTC
@

loader.env


https://nofu.jp/wiki/blog/2021/2021-01-09

loader prompt
ESPefi/boot/freebsd/loader.env 

rootdev=zfs:NEWPOOLNAME/ROOT/default:


efi/boot/freebsd/loader.efiefibootmgr

loader.efiefi/boot/bootx64.efi
efi/boot/loader.efi

loader.env
boot1.efi
loader.conf



rootdevada0p8UFS
loader.efi
luaforth12
10.3UFS

loader.efiboot1.efiUFS
10.3
ada0p12poolloader.env
ada0p8UFS


On Fri, 02 Sep 2022 01:05:51 +0900
masa@amogha.jp () wrote:

> 
> 
> 
> 
>  NEWPOOLNAME/ROOT/default 
> /boot/zfs/zpool.cache /boot/etc/zpool.cache 
> ()
> 
> (91) NEWPOOLNAME
>  zfs  13.1
> 
> (9/1)
> Welcome to FreeBSD(
> FreeBSD)boot 
> 
> 
> 3. Escape to loader prompt
> 
>  loader  OK 
> 
> OK set currdev=zfs:NEWPOOLNAME/ROOT/default:
> OK boot
> 
> 
> 
>  set currdev  boot 
>  13.1
>  OKloader.efi 
> 
> 31 OK 
> 
> 
>  13.1  /boot/loader.efi  efi/boot/bootx64.efi 
> 
> 
> 
> 
> >3. (ada0, gpt)(
> >  ada0p13) type freebsd-zfs da0p4zroot
> >
> >  zpool create NEWPOOLNAME ada0p13
> >  zfs send -R zroot@SNAPSHOT | zfs recv -F NEWPOOLNAME
> >
> > 4. (ada0boot)
> >   zpool set bootfs=NEWPOOLNAME/ROOT/default NEWPOOLNAME
> >   () ada0  efi ( ada0p4)
> >     EFI/Boot/bootx64.efi 
> >   /boot/loader.efi  ada0  efi 
> >     EFI/Boot/bootx64.efi 
> >   zpool export NEWPOOLNAME
> >   halt -p
> > 
> > 
> > 
> > Consoles: EFI console
> >     Reading loader vars from /efi/freebsd/loadef.env
> > Setting currdev disk0p4:
> > FreeBSD/amd64 EFI loader, Revision 1.1
> > 
> >    Command line arguments:
> >    Image base: 0xd0998000
> >    EFI version: 2.31
> > 
> > 
> > 
> > ERROR: cannot open /boot/lua/loader.lua: no such file or directory.
> > 
> > Type '?' for a list of commands,'help' for more detailed help.
> > OK
> 
> Welcome to FreeBSD
> OK show
> 
> 
> 
> 
> ( show )
> bootenv_autolist=YES
> bootenvs[0]=zfs:zroot/ROOT/default
> bootenvs_count=1
> currdev=zfs:zroot/ROOT/default:
> loaddev=zfs:zroot/ROOT/default:
> zfs_be_active=zfs:zroot/ROOT/default
> zfs_be_currpage=1
> zfs_be_root=zroot/ROOT
> 
> ( show )
> currdev=disk0p8:
> loaddev=disk0p8:
> 
> 
> 
> 
> # gpart show ada0
> =>        34  1000215149  ada0  GPT  (477G)
>           34        1600     1  bios-boot  (800K)
>         1634         414     2  freebsd-boot  (207K)
>         2048      921600     3  !de94bba4-06d1-4d40-a16a-bfd50179d6ac  (450M)
>       923648      204800     4  efi  (100M)
>      1128448       32768     5  ms-reserved  (16M)
>      1161216   195081904     6  ms-basic-data  (93G)
>    196243120         336        - free -  (168K)
>    196243456     1685504     7  !de94bba4-06d1-4d40-a16a-bfd50179d6ac  (823M)
>    197928960        4096        - free -  (2.0M)
>    197933056    10485760     8  freebsd-ufs  (5.0G)
>    208418816    10485760     9  freebsd-ufs  (5.0G)
>    218904576    16777216    10  freebsd-swap  (8.0G)
>    235681792    83886080    11  freebsd-ufs  (40G)
>    319567872    83886080    12  freebsd-zfs  (40G)
>    403453952    83886080    13  freebsd-zfs  (40G)
>    487340032    83886080    14  freebsd-ufs  (40G)
>    571226112    83886080    15  freebsd-ufs  (40G)
>    655112192   345102991    16  ms-basic-data  (165G)
> 
>  ada0p8  UEFI FreeBSD10.3
> 
> 
> OK boot
> 
> 10.3
> 
> OK set currdev=disk1p8:
> OK boot
> 
>  ada0p810.3(USB
> (da0) disk0, (ada0) disk1 
> )
> 
> 
> 
>  OK (Welcome to
> FreeBSD)
>  zfs:zroot/ROOT/default: ada0p8 
> ufs  loader.efi 
> loader.efi   ada0p8  ada0p13 
> zfs:NEWPOOLNAME/ROOT/default 
> 
> 
>  show
> 
> bootenvs[0]=zfs:zroot/ROOT/default
> bootenvs_count=1
> 
>  /efi/freebsd/loader.env 
> 
> bootenvs[0]=zfs:NEWPOOLNAME/ROOT/default
> 
> 
> 
> 
> loader.efi  loader.conf 
> 
> 
> 
> 
> --------
>    
>  masa@amogha.jp
> 


-- 
   [Tomoaki AOKI]    <junchoon@dec.sakura.ne.jp>