Make-initrd development discussion
 help / color / mirror / Atom feed
From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: "Семён Шепилов" <hasculdr@mail.ru>, make-initrd@lists.altlinux.org
Subject: Re: [make-initrd] поддержка zfs
Date: Sat, 22 Oct 2022 02:10:08 +0200
Message-ID: <Y1M04HTDgORHy4tS@example.org> (raw)
In-Reply-To: <1666375817.830054543@f398.i.mail.ru>

On Fri, Oct 21, 2022 at 09:10:17PM +0300, Семён Шепилов wrote:
> 
> В конфигурацию initrd.mk добавил единственную строку MODULES_ADD += zfs, стандартный альтовский образ initrd стал таким (изменения выделил символом «*»):
> Used features: add-modules add-udev-rules buildinfo cleanup compress depmod-image gpu-drm kbd
> locales network plymouth rdshell rootfs system-glibc ucode
> Packed modules: af_packet amdgpu cec drm drm_kms_helper drm_ttm_helper evdev gpu-sched hid
> hid-generic hwmon i2c-algo-bit icp* input-leds intel-agp intel-gtt iommu_v2 rc-core serio_raw
> sis-agp spl* ttm via-agp zavl* zcommon* zfs* zlua* znvpair* zunicode* zzstd*
> Ядро уже было с поддержкой zfs — у меня не новая установка, а перенос системы с поддержкой zfs на другой носитель.
> Во всех инструкциях описывается либо установка из смонтированных репозиториев, либо debootstrap для дебиана;
> выжимка для дебиана ( https://openzfs.github.io/openzfs-docs/Getting%20Started/Debian/Debian%20Bullseye%20Root%20on%20ZFS.html#step-4-system-configuration ):
> apt install dpkg-dev linux-headers-generic linux-image-generic zfs-initramfs
> echo REMAKE_INITRD = yes > /etc/dkms/zfs.conf
> update-initramfs -c -k all
>  
> для арча ( https://openzfs.github.io/openzfs-docs/Getting%20Started/Arch%20Linux/Root%20on%20ZFS/3-system-configuration.html ):
> Configure mkinitcpio:
> tee /mnt/etc/mkinitcpio.conf  <<EOF
> HOOKS=(base udev autodetect modconf block keyboard zfs filesystems)
> EOF
>  
> для суси ( https://openzfs.github.io/openzfs-docs/Getting%20Started/openSUSE/openSUSE%20Leap%20Root%20on%20ZFS.html#step-6-kernel-installation ):
> Add zfs module into dracut: echo 'zfs' >> /etc/modules-load.d/zfs.conf

Поддержки zfs нет в dracut. Модуль для этой файловой системы есть
только отдельно[1]. Нужно почитать как они предлагают монтировать zfs. Уж
очень много там скриптов.

[1] https://github.com/openzfs/zfs/tree/master/contrib/dracut

-- 
Rgrds, legion



  parent reply	other threads:[~2022-10-22  0:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-21  7:24 ` Konstantin Lepikhov
2022-10-21 17:04     ` Konstantin Lepikhov
2022-10-22  0:10         ` Alexey Gladkov [this message]
2022-10-23 18:47             ` Alexey Gladkov
2022-10-21 10:50 ` Alexey Gladkov
2022-11-19 16:09 ` Alexey Gladkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y1M04HTDgORHy4tS@example.org \
    --to=gladkov.alexey@gmail.com \
    --cc=hasculdr@mail.ru \
    --cc=make-initrd@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Make-initrd development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/make-initrd/0 make-initrd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 make-initrd make-initrd/ http://lore.altlinux.org/make-initrd \
		make-initrd@lists.altlinux.org make-initrd@lists.altlinux.ru make-initrd@lists.altlinux.com
	public-inbox-index make-initrd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.make-initrd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git