Skip to content

Commit e056a6a

Browse files
cyphargmelikov
authored andcommitted
getting started: opensuse: mention zfs-ueficert package
openSUSE enables kernel_lockdown(7), which forces all kernel modules to need to be signed. The kernel module package building infrastructure can sign all modules (and does for ZFS), but the module is not signed with the official project keys (as it is managed by a devel project). As per [1] the solution is to simply install zfs-ueficert which contains the right signing key and also will auto-register the key with MOK on the next boot. [1]: https://bugzilla.suse.com/show_bug.cgi?id=1173551 Signed-off-by: Aleksa Sarai <[email protected]>
1 parent 0ba451d commit e056a6a

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

docs/Getting Started/openSUSE/openSUSE Leap Root on ZFS.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,13 +697,27 @@ Step 5: System Configuration
697697

698698
**Note:** If you installed `base` pattern, you need to deinstall busybox-grep to install `kernel-default` package.
699699

700-
#. Install ZFS in the chroot environment for the new system::
700+
#. Install ZFS in the chroot environment for the new system
701+
702+
.. code-block:: text
701703
702704
zypper install lsb-release
703705
zypper addrepo https://download.opensuse.org/repositories/filesystems/`lsb_release -rs`/filesystems.repo
704706
zypper refresh # Refresh all repositories
705707
zypper install zfs zfs-kmp-default
706708
709+
Note that if your system uses UEFI with Secure Boot, since openSUSE Leap
710+
15.2 the kernel requires all kernel modules to be signed. The ZFS kernel
711+
module built in the ``filesystems`` project *is* signed, but not with the
712+
official openSUSE key that was automatically registered with your system
713+
when you first booted into openSUSE. In order to make sure that your system
714+
trusts the ``filesystems`` signing key, make sure to install the
715+
``zfs-ueficert`` package as well::
716+
717+
zypper install zfs-ueficert
718+
719+
On the next boot, you will be prompted by the MOK to enroll the new key.
720+
707721
#. For LUKS installs only, setup ``/etc/crypttab``::
708722

709723
zypper install cryptsetup

docs/Getting Started/openSUSE/openSUSE Tumbleweed Root on ZFS.rst

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,12 +681,25 @@ Step 5: System Configuration
681681

682682
.. note:: If you installed `base` pattern, you need to deinstall busybox-grep to install `kernel-default` package.
683683

684-
#. Install ZFS in the chroot environment for the new system::
684+
#. Install ZFS in the chroot environment for the new system
685+
686+
.. code-block:: text
685687
686688
zypper addrepo https://download.opensuse.org/repositories/filesystems/openSUSE_Tumbleweed/filesystems.repo
687689
zypper refresh # Refresh all repositories
688690
zypper install zfs
689691
692+
Note that if your system uses UEFI with Secure Boot, since Linux 5.4 the
693+
kernel requires all kernel modules to be signed. The ZFS kernel module built
694+
in the ``filesystems`` project *is* signed, but not with the official
695+
openSUSE key that was automatically registered with your system when you
696+
first booted into openSUSE. In order to make sure that your system trusts
697+
the ``filesystems`` signing key, make sure to install the ``zfs-ueficert``
698+
package as well::
699+
700+
zypper install zfs-ueficert
701+
702+
On the next boot, you will be prompted by the MOK to enroll the new key.
690703

691704
#. For LUKS installs only, setup ``/etc/crypttab``::
692705

0 commit comments

Comments
 (0)