This is a hook for mkinitcpio
in ArchLinux when using Plymouth and ZFS with native encryption.
!!! Make sure plymouth-zfs
is NOT installed !!!
- Download
plymouth-zfs.install
andplymouth-zfs.hook
. - Place
plymouth-zfs.install
at/etc/initcpio/install/plymouth-zfs
. - Place
plymouth-zfs.hook
at/etc/initcpio/hooks/plymouth-zfs
. - Update the HOOKS array in
/etc/mkinitcpio.conf
as per the docs. - Rebuid the initrams (
mkinitcpio -P
) and sign it if needed.
Example HOOKS array:
HOOKS=(base udev plymouth autodetect modconf block keyboard plymouth-zfs filesystems)
The hook works for me but YMMV. My goal is to setup an AUR package that automatically patches the hook from the ArchZFS repository.
This is a replacement for plymouth-zfs.
That package seems unmaintained and there's a bug in the handling of the file systems: it ignores filesystems with canmount=off
.
The scripts here are based on up-to-date ones from ArchZFS with minimal changes inspired by plymouth-zfs.
Feel free to open an issue or send a pull request. Note that as this is a tiny modification over the upstream, the issue is likely to come from there.
This code is distributed under the terms of the MIT License, like the upstream project ArchZFS.