mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
ae26d0465a
To simplify the process of using zfs as your root filesystem a zfs-drucat sub-package has been added. This sub-package adds a zfs dracut module which allows your initramfs to be rebuilt with zfs support. The process for doing this is still complicated but there is clearly interest from the community about getting this working well and documented. This should help lay some of the groundwork. Longer term these changes should be pushed in the upstream dracut package. Once that occurs this subpackage will no longer be required for new systems, however we may want to conditionally build this package in the future for systems running older dracut versions. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
18 lines
471 B
Bash
Executable File
18 lines
471 B
Bash
Executable File
#!/bin/bash
|
|
|
|
inst_rules "$moddir/90-zfs.rules"
|
|
inst_rules /etc/udev/rules.d/60-zpool.rules
|
|
inst_rules /etc/udev/rules.d/60-zvol.rules
|
|
inst /etc/zfs/zdev.conf
|
|
inst /etc/hostid
|
|
dracut_install zfs
|
|
dracut_install zpool
|
|
dracut_install zpool_layout
|
|
dracut_install zpool_id
|
|
dracut_install zvol_id
|
|
dracut_install mount.zfs
|
|
dracut_install hostid
|
|
inst_hook cmdline 95 "$moddir/parse-zfs.sh"
|
|
inst_hook mount 98 "$moddir/mount-zfs.sh"
|
|
inst_hook pre-udev 29 "$moddir/zfs-genrules.sh"
|