From 2aa40407433f1677ffa90fcb5dbfb1c371a24be1 Mon Sep 17 00:00:00 2001 From: Maurice Zhou Date: Fri, 18 Mar 2022 19:53:06 +0100 Subject: [PATCH] Fedora & RHEL: fix slow loading mpt3sas. Credit: @mdiepart from #282 Closes #282 #262 Fix variable export before chroot Credit: @mdiepart from #282 remind user to enable multi-disk support NixOS: handle installation failure wrt encrypted boot pool Closes #279 Signed-off-by: Maurice Zhou --- .../Arch Linux/Root on ZFS/3-system-configuration.rst | 2 +- .../Root on ZFS/4-optional-configuration.rst | 3 +++ .../Fedora/Root on ZFS/2-system-installation.rst | 3 +++ .../Fedora/Root on ZFS/3-system-configuration.rst | 8 +++++++- .../NixOS/Root on ZFS/4-system-installation.rst | 11 +++++++++++ .../2-system-installation.rst | 3 +++ .../3-system-configuration.rst | 8 +++++++- 7 files changed, 35 insertions(+), 3 deletions(-) diff --git a/docs/Getting Started/Arch Linux/Root on ZFS/3-system-configuration.rst b/docs/Getting Started/Arch Linux/Root on ZFS/3-system-configuration.rst index 91d8ac6..f29392f 100644 --- a/docs/Getting Started/Arch Linux/Root on ZFS/3-system-configuration.rst +++ b/docs/Getting Started/Arch Linux/Root on ZFS/3-system-configuration.rst @@ -110,7 +110,7 @@ System Configuration INST_UUID=$INST_UUID INST_ID=$INST_ID INST_VDEV=$INST_VDEV - DISK=$DISK" > /mnt/root/chroot + DISK=\"$DISK\"" > /mnt/root/chroot arch-chroot /mnt bash --login #. Source variables:: diff --git a/docs/Getting Started/Arch Linux/Root on ZFS/4-optional-configuration.rst b/docs/Getting Started/Arch Linux/Root on ZFS/4-optional-configuration.rst index cc64520..28ab046 100644 --- a/docs/Getting Started/Arch Linux/Root on ZFS/4-optional-configuration.rst +++ b/docs/Getting Started/Arch Linux/Root on ZFS/4-optional-configuration.rst @@ -33,6 +33,9 @@ for pacman integration:: exit rm /etc/sudoers.d/00_nobody +If multi-disk setup is used, enable multi-disk +support inside ``/etc/bieaz.cfg``. + Supply password with SSH ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/Getting Started/Fedora/Root on ZFS/2-system-installation.rst b/docs/Getting Started/Fedora/Root on ZFS/2-system-installation.rst index 9e27d19..208b505 100644 --- a/docs/Getting Started/Fedora/Root on ZFS/2-system-installation.rst +++ b/docs/Getting Started/Fedora/Root on ZFS/2-system-installation.rst @@ -251,3 +251,6 @@ System Installation dnf --installroot=/mnt copr enable -y m0p/bieaz dnf --installroot=/mnt install -y bieaz python3-dnf-plugin-rozb3 + + If multi-disk setup is used, enable multi-disk + support inside ``/mnt/etc/bieaz.cfg``. diff --git a/docs/Getting Started/Fedora/Root on ZFS/3-system-configuration.rst b/docs/Getting Started/Fedora/Root on ZFS/3-system-configuration.rst index d8f1be3..759d2fa 100644 --- a/docs/Getting Started/Fedora/Root on ZFS/3-system-configuration.rst +++ b/docs/Getting Started/Fedora/Root on ZFS/3-system-configuration.rst @@ -31,6 +31,12 @@ System Configuration echo 'add_dracutmodules+=" zfs "' > /mnt/etc/dracut.conf.d/zfs.conf +#. Force load mpt3sas module if used:: + + if grep -q mpt3sas /proc/modules; then + echo 'forced_drivers+=" mpt3sas "' > /mnt/etc/dracut.conf.d/zfs.conf + fi + #. Enable timezone sync:: hwclock --systohc @@ -84,7 +90,7 @@ System Configuration INST_ID=$INST_ID unalias -a INST_VDEV=$INST_VDEV - DISK=$DISK" > /mnt/root/chroot + DISK=\"$DISK\"" > /mnt/root/chroot arch-chroot /mnt bash --login #. Source variables:: diff --git a/docs/Getting Started/NixOS/Root on ZFS/4-system-installation.rst b/docs/Getting Started/NixOS/Root on ZFS/4-system-installation.rst index 54ff6be..5f7cb0f 100644 --- a/docs/Getting Started/NixOS/Root on ZFS/4-system-installation.rst +++ b/docs/Getting Started/NixOS/Root on ZFS/4-system-installation.rst @@ -36,6 +36,17 @@ of declaratively configuring the system. users.users.root.initialHashedPassword = "${INST_ROOT_PASSWD}"; EOF +#. If boot pool encryption is used and installation fails with:: + + #mktemp: failed to create directory via template + #‘/mnt/tmp.coRUoqzl1P/initrd-secrets.XXXXXXXXXX’: No such file or directory + #failed to create initrd secrets: No such file or directory + + This is `a bug `__. + Complete the installation by executing:: + + nixos-enter --root /mnt -- nixos-rebuild boot + System installation ~~~~~~~~~~~~~~~~~~~ diff --git a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst index daef7ad..fc029f3 100644 --- a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst +++ b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/2-system-installation.rst @@ -266,3 +266,6 @@ System Installation dnf --installroot=/mnt copr enable -y m0p/bieaz dnf --installroot=/mnt install -y bieaz python3-dnf-plugin-rozb3 + + If multi-disk setup is used, enable multi-disk + support inside ``/mnt/etc/bieaz.cfg``. diff --git a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst index ca2dae8..290f782 100644 --- a/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst +++ b/docs/Getting Started/RHEL-based distro/RHEL 8-based distro Root on ZFS/3-system-configuration.rst @@ -31,6 +31,12 @@ System Configuration echo 'add_dracutmodules+=" zfs "' > /mnt/etc/dracut.conf.d/zfs.conf +#. Force load mpt3sas module if used:: + + if grep -q mpt3sas /proc/modules; then + echo 'forced_drivers+=" mpt3sas "' > /mnt/etc/dracut.conf.d/zfs.conf + fi + #. Interactively set locale, keymap, timezone, hostname and root password:: rm -f /mnt/etc/localtime @@ -80,7 +86,7 @@ System Configuration TERM=xterm INST_VDEV=$INST_VDEV INST_VDEV=$INST_VDEV - DISK=$DISK" > /mnt/root/chroot + DISK=\"$DISK\"" > /mnt/root/chroot arch-chroot /mnt bash --login #. Source variables::