You are not logged in.
I receive the following error when I give: mkinitcpio -p linux
"ERROR: Hook 'zfs' cannot be found"
I followed the instructions of the Arch wiki and I used the latest Arch iso.
Offline
What is the output of `pacman -Qo /usr/lib/initcpio/install/` and what package did you install to provide the zfs hook?
Online
Mod note: Moving to AUR Issues.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I had only installed zfs module in the archiso environment using: https://github.com/eoli3n/archiso-zfs
I did the same in the chroot environment and it worked fine.
The only thing that I noticed is the following:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 1.97G 31.0G 96K none
zroot/ROOT 1.97G 31.0G 96K none
zroot/ROOT/default 1.97G 31.0G 1.97G /
zroot/data 252K 31.0G 96K none
zroot/data/home 156K 31.0G 156K /home
Is it normal to have no mountpoint?
Offline
In the chroot what is the output of
pacman -Qo /usr/lib/initcpio/install/
pacman -Qs zfs
Online
pacman -Qo /usr/lib/initcpio/install/
/usr/lib/initcpio/install/ is owned by cryptsetup 2.6.0-1
/usr/lib/initcpio/install/ is owned by mkinitcpio 33-1
/usr/lib/initcpio/install/ is owned by systemd 252.2-2
/usr/lib/initcpio/install/ is owned by zfs-utils 2.1.6-2
pacman -Qs zfs
local/zfs-linux 2.1.6_6.0.10.arch2.1-1 (archzfs-linux)
Kernel modules for the Zettabyte File System.
local/zfs-utils 2.1.6-2 (archzfs-linux)
Kernel module support files for the Zettabyte File System
Last edited by chrislg (2022-12-02 23:02:53)
Offline
Double check in the chroot the output of `pacman -Ql zfs-utils` contains /usr/lib/initcpio/hooks/zfs and /usr/lib/initcpio/install/zfs.
Also are you running mkinitcpio inside or outside the chroot?
Edit:
Also inside the chroot the output of `mkinitcpio -L`
Last edited by loqs (2022-12-02 23:13:31)
Online
The problem is solved.
I hadn't installed zfs inside the chroot.
pacman -Ql zfs-utils contains the files you mentioned and mkinitcpio -L now contains zfs.
mkinitcpio -L
==> Available hooks
autodetect hostdata sd-encrypt udev
base keyboard sd-shutdown usr
block keymap sd-vconsole zfs
consolefont kms shutdown zfsencryptssh
encrypt memdisk sleep
filesystems modconf strip
fsck resume systemd
Offline