Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:blog:2021:2021-01-09 [2021-01-10 11:30]
Decomo 作成
en:blog:2021:2021-01-09 [2022-01-06 13:04] (current)
Decomo
Line 1: Line 1:
-FIXME **このページはまだ完全には、翻訳されません。翻訳の完了を支援して下さい。**\\ //(翻訳が完了したらこの段落を削除して下さい)// 
- 
 ====== How to boot a FreeBSD system in any partitions with loader.efi ====== ====== How to boot a FreeBSD system in any partitions with loader.efi ======
  
-In about FreeBSD 12.0-RELEASE, loader.efi has been used as UEFI bootloader instead of prior boot.efi.+In about FreeBSD 12.0-RELEASE, ''loader.efi'' has been used as UEFI bootloader instead of prior ''boot.efi''.
  
 Both loaders can boot a FreeBSD system from ZFS or UFS file system. Both loaders can boot a FreeBSD system from ZFS or UFS file system.
-The loader.efi only looks for the file system from the storage which the loader is loaded from though the boot1.efi does from multiple  ones+The loader.efi only looks for the boot file system from the disk which the loader is loaded fromthough the boot1.efi does it from its disk and also another disks
-Briefly speaking, the former can't boot the system from other HDDs+Briefly speaking, current loader.efi can't boot the system from other disks
-Well, it can do it if operate to set the boot devices manually in loader prompt each time, but it is not realistic.+Well, it can do it if we manually operate to set the boot devices in loader prompt each time, but this is not realistic way.
  
-I thought that it somehow got be able to automatically boot the system, then I read some documents and googled, but there was no idea. +I thought that it somehow got be able to automatically boot the system from other disks, then I read some documents and googled, but there was no idea. 
-After I reluctantly saw [[https://github.com/freebsd/freebsd-src/tree/master/stand/efi/loader|the source codes of loader.efi]], I found a way using a loader.env file and a rootdev variable.+After I reluctantly saw [[https://github.com/freebsd/freebsd-src/tree/master/stand/efi/loader|the source codes of loader.efi]], I found a way using a ''loader.env'' file and a ''rootdev'' variable.
  
 Regardless of loader.efi or boot1.efi, it eventually uses the value of ''currdev'' variable as a boot target. In loader.efi, [[https://github.com/freebsd/freebsd-src/blob/de1aa3dab23c06fec962a14da3e7b4755c5880cf/stand/efi/loader/main.c#L509|the 'currdev' is set from a 'rootdev' variable unquestionably if it exists]]. Regardless of loader.efi or boot1.efi, it eventually uses the value of ''currdev'' variable as a boot target. In loader.efi, [[https://github.com/freebsd/freebsd-src/blob/de1aa3dab23c06fec962a14da3e7b4755c5880cf/stand/efi/loader/main.c#L509|the 'currdev' is set from a 'rootdev' variable unquestionably if it exists]].
  • en/blog/2021/2021-01-09.1610245820.txt.gz
  • Last modified: 2021-01-10 11:30
  • by Decomo