Fedora: downgrade to 37 and test zfs repo link

ZFS support for Fedora 38 is not yet available, see https://github.com/openzfs/zfs/issues/14725

Also enable blkdiscard by default.

Signed-off-by: Maurice Zhou <yuchen@apvc.uk>
This commit is contained in:
Maurice Zhou
2023-04-23 19:56:37 +02:00
committed by George Melikov
parent d5f690804c
commit 6be2e8c12e
6 changed files with 24 additions and 17 deletions

View File

@@ -203,12 +203,12 @@ System Installation
especially those with existing ZFS pools or mdraid and those that have been used as live media. especially those with existing ZFS pools or mdraid and those that have been used as live media.
Those data structures may interfere with boot process. Those data structures may interfere with boot process.
For flash-based storage, this can be done by uncommenting the blkdiscard command below: For flash-based storage, this can be done by the blkdiscard command below:
:: ::
partition_disk () { partition_disk () {
local disk="${1}" local disk="${1}"
#blkdiscard -f "${disk}" blkdiscard -f "${disk}" || true
parted --script --align=optimal "${disk}" -- \ parted --script --align=optimal "${disk}" -- \
mklabel gpt \ mklabel gpt \

View File

@@ -200,12 +200,12 @@ System Installation
especially those with existing ZFS pools or mdraid and those that have been used as live media. especially those with existing ZFS pools or mdraid and those that have been used as live media.
Those data structures may interfere with boot process. Those data structures may interfere with boot process.
For flash-based storage, this can be done by uncommenting the blkdiscard command below: For flash-based storage, this can be done by the blkdiscard command below:
:: ::
partition_disk () { partition_disk () {
local disk="${1}" local disk="${1}"
#blkdiscard -f "${disk}" blkdiscard -f "${disk}" || true
parted --script --align=optimal "${disk}" -- \ parted --script --align=optimal "${disk}" -- \
mklabel gpt \ mklabel gpt \

View File

@@ -204,12 +204,12 @@ System Installation
especially those with existing ZFS pools or mdraid and those that have been used as live media. especially those with existing ZFS pools or mdraid and those that have been used as live media.
Those data structures may interfere with boot process. Those data structures may interfere with boot process.
For flash-based storage, this can be done by uncommenting the blkdiscard command below: For flash-based storage, this can be done by the blkdiscard command below:
:: ::
partition_disk () { partition_disk () {
local disk="${1}" local disk="${1}"
#blkdiscard -f "${disk}" blkdiscard -f "${disk}" || true
parted --script --align=optimal "${disk}" -- \ parted --script --align=optimal "${disk}" -- \
mklabel gpt \ mklabel gpt \
@@ -399,10 +399,10 @@ System Configuration
apk add curl apk add curl
curl --fail-early --fail -L \ curl --fail-early --fail -L \
https://dl.fedoraproject.org/pub/fedora/linux/releases/38/Container/x86_64/images/Fedora-Container-Base-38-1.6.x86_64.tar.xz \ https://dl.fedoraproject.org/pub/fedora/linux/releases/37/Container/x86_64/images/Fedora-Container-Base-37-1.7.x86_64.tar.xz \
-o rootfs.tar.gz -o rootfs.tar.gz
curl --fail-early --fail -L \ curl --fail-early --fail -L \
https://dl.fedoraproject.org/pub/fedora/linux/releases/38/Container/x86_64/images/Fedora-Container-38-1.6-x86_64-CHECKSUM \ https://dl.fedoraproject.org/pub/fedora/linux/releases/37/Container/x86_64/images/Fedora-Container-37-1.7-x86_64-CHECKSUM \
-o checksum -o checksum
# BusyBox sha256sum treats all lines in the checksum file # BusyBox sha256sum treats all lines in the checksum file
@@ -478,7 +478,7 @@ System Configuration
.. code-block:: sh .. code-block:: sh
dnf -y install \ dnf -y install \
https://zfsonlinux.org/fedora/zfs-release-2-2$(rpm --eval "%{dist}").noarch.rpm https://zfsonlinux.org/fedora/zfs-release-2-2"$(rpm --eval "%{dist}"||true)".noarch.rpm
dnf -y install zfs zfs-dracut dnf -y install zfs zfs-dracut
@@ -487,6 +487,9 @@ System Configuration
# this step will build zfs modules and fail # this step will build zfs modules and fail
# no need to test building in chroot # no need to test building in chroot
dnf -y install \
https://zfsonlinux.org/fedora/zfs-release-2-2"$(rpm --eval "%{dist}"||true)".noarch.rpm
#. Check whether ZFS modules are successfully built #. Check whether ZFS modules are successfully built
.. code-block:: sh .. code-block:: sh

View File

@@ -48,10 +48,14 @@ see below.
An option is to an LTS kernel from COPR, provided by a third-party. An option is to an LTS kernel from COPR, provided by a third-party.
Use it at your own risk:: Use it at your own risk::
# kwizart/kernel-longterm-5.10 # this is a third-party repo!
# kwizart/kernel-longterm-4.19 # you have been warned.
dnf copr enable -y kwizart/kernel-longterm-5.4 #
dnf install -y kernel-longterm kernel-longterm-devel # select a kernel from
# https://copr.fedorainfracloud.org/coprs/kwizart/
dnf copr enable -y kwizart/kernel-longterm-VERSION
dnf install -y kernel-longterm kernel-longterm-devel
Reboot to new LTS kernel, then load kernel module:: Reboot to new LTS kernel, then load kernel module::

View File

@@ -151,12 +151,12 @@ System Installation
especially those with existing ZFS pools or mdraid and those that have been used as live media. especially those with existing ZFS pools or mdraid and those that have been used as live media.
Those data structures may interfere with boot process. Those data structures may interfere with boot process.
For flash-based storage, this can be done by uncommenting the blkdiscard command below: For flash-based storage, this can be done by the blkdiscard command below:
:: ::
partition_disk () { partition_disk () {
local disk="${1}" local disk="${1}"
#blkdiscard -f "${disk}" blkdiscard -f "${disk}" || true
parted --script --align=optimal "${disk}" -- \ parted --script --align=optimal "${disk}" -- \
mklabel gpt \ mklabel gpt \

View File

@@ -199,12 +199,12 @@ System Installation
especially those with existing ZFS pools or mdraid and those that have been used as live media. especially those with existing ZFS pools or mdraid and those that have been used as live media.
Those data structures may interfere with boot process. Those data structures may interfere with boot process.
For flash-based storage, this can be done by uncommenting the blkdiscard command below: For flash-based storage, this can be done by the blkdiscard command below:
:: ::
partition_disk () { partition_disk () {
local disk="${1}" local disk="${1}"
#blkdiscard -f "${disk}" blkdiscard -f "${disk}" || true
parted --script --align=optimal "${disk}" -- \ parted --script --align=optimal "${disk}" -- \
mklabel gpt \ mklabel gpt \