forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
01c0e61
commit ae26d04
Showing
19 changed files
with
1,355 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ to the project and deserve to be acknowledged. | |
Ned Bass <[email protected]> | ||
Herb Wartens <[email protected]> | ||
Jim Garlick <[email protected]> | ||
Manuel Amador (Rudd-O) <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SUBSYSTEM!="block", GOTO="zfs_end" | ||
ACTION!="add|change", GOTO="zfs_end" | ||
|
||
ENV{ID_FS_TYPE}=="zfs", RUN+="/sbin/modprobe zfs" | ||
ENV{ID_FS_TYPE}=="zfs_member", RUN+="/sbin/modprobe zfs" | ||
|
||
LABEL="zfs_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
pkgdracutdir = $(datarootdir)/dracut/modules.d/90zfs | ||
dist_pkgdracut_SCRIPTS = \ | ||
$(top_srcdir)/dracut/90zfs/90-zfs.rules \ | ||
$(top_srcdir)/dracut/90zfs/check \ | ||
$(top_srcdir)/dracut/90zfs/install \ | ||
$(top_srcdir)/dracut/90zfs/installkernel \ | ||
$(top_srcdir)/dracut/90zfs/mount-zfs.sh \ | ||
$(top_srcdir)/dracut/90zfs/zfs-genrules.sh \ | ||
$(top_srcdir)/dracut/90zfs/parse-zfs.sh | ||
|
||
all: | ||
@list='$(dist_pkgdracut_SCRIPTS)'; \ | ||
for file in $$list; do \ | ||
link=$$(basename $$file); \ | ||
if [ ! -e $$link ]; then \ | ||
$(LN_S) $$file $$link; \ | ||
fi \ | ||
done | ||
|
||
clean: | ||
@list='$(dist_pkgdracut_SCRIPTS)'; \ | ||
for file in $$list; do \ | ||
link=$$(basename $$file); \ | ||
if [ -L $$link ]; then \ | ||
$(RM) $$link; \ | ||
fi \ | ||
done |
Oops, something went wrong.