Openzfs rootfs - 安装 efi 引导加载程序的问题

问题描述

刚刚给自己买了一个带有两个 ssd 驱动器的新戴尔 Precision 5750,并将这两个驱动器设置在 gentoo 上的镜像 zpool 中。但是,我无法锻炼的是如何启动这些驱动器,因为它们完全与 zfs 一起使用。我明白这是可能的,只是不确定我做错了什么/遗漏了什么。

这是我的设置;

(chroot) livecd ~ # zpool status
  pool: rpool
 state: ONLINE
  scan: none requested
config:

        NAME         STATE     READ WRITE CKSUM
        rpool        ONLINE       0     0     0
          mirror-0   ONLINE       0     0     0
            nvme0n1  ONLINE       0     0     0
            nvme1n1  ONLINE       0     0     0

errors: No kNown data errors 
(chroot) livecd ~ # zfs list
NAME                USED  AVAIL     REFER  MOUNTPOINT
rpool              80.2G   842G       96K  none
rpool/ROOT         12.2G   842G       96K  none
rpool/ROOT/boot    23.9M   842G     23.9M  /mnt/gentoo/boot
rpool/ROOT/gentoo  12.2G   842G     12.2G  /mnt/gentoo
rpool/SWAP         68.0G   910G       56K  -
(chroot) livecd ~ # 
(chroot) livecd ~ # lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0 570.7M  1 loop
sdc           8:32   1  28.7G  0 disk
├─sdc1        8:33   1   609M  0 part
└─sdc2        8:34   1   6.4M  0 part
zd0         230:0    0    64G  0 disk
nvme0n1     259:0    0 953.9G  0 disk
├─nvme0n1p1 259:2    0 953.9G  0 part
└─nvme0n1p9 259:3    0     8M  0 part
nvme1n1     259:1    0 953.9G  0 disk
├─nvme1n1p1 259:4    0 953.9G  0 part
├─nvme1n1p2 259:5    0  1000K  0 part
└─nvme1n1p9 259:6    0     8M  0 part 
(chroot) livecd ~ # fdisk -l /dev/nvme1n1
disk /dev/nvme1n1: 953.89 GiB,1024209543168 bytes,2000409264 sectors
disk model: PC601A NVMe SK hynix 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
disklabel type: gpt
disk identifier: 21BB586E-A238-0D40-852D-648695E2BCEA

Device              Start        End    Sectors   Size Type
/dev/nvme1n1p1       2048 2000392191 2000390144 953.9G Solaris /usr & Apple ZFS
/dev/nvme1n1p2         48       2047       2000  1000K BIOS boot
/dev/nvme1n1p9 2000392192 2000408575      16384     8M Solaris reserved 1

Partition table entries are not in disk order.
(chroot) livecd ~ # fdisk -l /dev/nvme0n1
disk /dev/nvme0n1: 953.89 GiB,2000409264 sectors
disk model: PC601A NVMe SK hynix 1TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
disklabel type: gpt
disk identifier: C58C21EA-13A1-B94B-8DDA-4D774FD9C76A

Device              Start        End    Sectors   Size Type
/dev/nvme0n1p1       2048 2000392191 2000390144 953.9G Solaris /usr & Apple ZFS
/dev/nvme0n1p9 2000392192 2000408575      16384     8M Solaris reserved 1
(chroot) livecd ~ # 

正如您从上面的输出中看到的,我有一个仅用于 /dev/nvme0n1 磁盘的 gpt 磁盘。不太确定这是否与这一切有关。

(chroot) livecd ~ # grub-install --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory. 
(chroot) livecd ~ # efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0003,0001,0002
Boot0000* USB NIC (IPV4)        PciRoot(0x0)/Pci(0x1d,0x0)/Pci(0x0,0x0)/Pci(0x2,0x0)/USB(2,0)/USB(1,0)/USB(0,0)/MAC(b07b25661c51,0)/IPv4(0.0.0.00.0.0.0,0)N.....YM....R,Y.
Boot0001* UEFI USB Sandisk 3.2Gen1 0401ff0842e4c1a5a31616046833d609494c9ba0fc599336d7d5825ba42ccca95dea00000000000000000000d4affe21008d64188155810797295375   PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0)/HD(2,MBR,0x39491dfa,0xc0,0x330c)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0002* UEFI USB Sandisk 3.2Gen1 0401ff0842e4c1a5a31616046833d609494c9ba0fc599336d7d5825ba42ccca95dea00000000000000000000d4affe21008d64188155810797295375 2 PciRoot(0x0)/Pci(0x1c,0)/CDROM(1,0xcc30)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0003* USB NIC (IPV6)        PciRoot(0x0)/Pci(0x1d,0)/IPv6([::]:<->[::]:,Y.

真的很感谢任何人认为我可能错过/搞砸的任何提示/指示。 谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)