diff options
author | Manuel Amador (Rudd-O) <[email protected]> | 2011-03-17 15:18:13 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-03-17 16:52:04 -0700 |
commit | ae26d0465a234d7b340566287908c78fe24901e1 (patch) | |
tree | 07c0604ff755e8df99e758559d2c048cd86d75c2 /dracut/90zfs/Makefile.am | |
parent | 01c0e61da027925b71c923a2b3896abf458b45a9 (diff) |
Add dracut support
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]>
Diffstat (limited to 'dracut/90zfs/Makefile.am')
-rw-r--r-- | dracut/90zfs/Makefile.am | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/dracut/90zfs/Makefile.am b/dracut/90zfs/Makefile.am new file mode 100644 index 000000000..cea78c5d2 --- /dev/null +++ b/dracut/90zfs/Makefile.am @@ -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 |