Skip to content

Commit 30914ce

Browse files
committed
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 2e861ea commit 30914ce

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
@@ -692,13 +692,27 @@ Step 5: System Configuration
692692

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

695-
#. Install ZFS in the chroot environment for the new system::
695+
#. Install ZFS in the chroot environment for the new system
696+
697+
.. code-block:: text
696698
697699
zypper install lsb-release
698700
zypper addrepo https://download.opensuse.org/repositories/filesystems/`lsb_release -rs`/filesystems.repo
699701
zypper refresh # Refresh all repositories
700702
zypper install zfs zfs-kmp-default
701703
704+
Note that if your system uses UEFI with Secure Boot, since openSUSE Leap
705+
15.2 the kernel requires all kernel modules to be signed. The ZFS kernel
706+
module built in the ``filesystems`` project *is* signed, but not with the
707+
official openSUSE key that was automatically registered with your system
708+
when you first booted into openSUSE. In order to make sure that your system
709+
trusts the ``filesystems`` signing key, make sure to install the
710+
``zfs-ueficert`` package as well::
711+
712+
zypper install zfs-ueficert
713+
714+
On the next boot, you will be prompted by the MOK to enroll the new key.
715+
702716
#. For LUKS installs only, setup ``/etc/crypttab``::
703717

704718
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
@@ -677,12 +677,25 @@ Step 5: System Configuration
677677

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

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

687700
#. For LUKS installs only, setup ``/etc/crypttab``::
688701

0 commit comments

Comments
 (0)