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.
Move 90-zfs udev rule from dracut to udev/rules.d
This rule does not need to be dracut specific. Automatically loading the zfs module stack when a zfs device is detected is usually desirable. My only concern is that this might cause trouble for large pools where we don't want to automatically import the pool until all the disks are available. However, we'll cross that bridge when we come to it. Signed-off-by: Brian Behlendorf <[email protected]>
- Loading branch information
1 parent
9c4f40b
commit 146cde8
Showing
8 changed files
with
26 additions
and
15 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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
60-zpool.rules | ||
60-zvol.rules | ||
90-zfs.rules |
File renamed without changes.
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 |
---|---|---|
@@ -1,14 +1,20 @@ | ||
udevrule_DATA = \ | ||
60-zpool.rules \ | ||
60-zvol.rules | ||
$(top_srcdir)/udev/rules.d/60-zpool.rules \ | ||
$(top_srcdir)/udev/rules.d/60-zvol.rules \ | ||
$(top_srcdir)/udev/rules.d/90-zfs.rules | ||
|
||
EXTRA_DIST = \ | ||
60-zpool.rules.in \ | ||
60-zvol.rules.in | ||
$(top_srcdir)/udev/rules.d/60-zpool.rules.in \ | ||
$(top_srcdir)/udev/rules.d/60-zvol.rules.in \ | ||
$(top_srcdir)/udev/rules.d/90-zfs.rules.in | ||
|
||
$(udevrule_DATA): | ||
-$(SED) -e 's,@udevdir\@,$(udevdir),g' '[email protected]' >'$@' | ||
-$(SED) -e 's,@bindir\@,$(bindir),g' \ | ||
-e 's,@sbindir\@,$(sbindir),g' \ | ||
-e 's,@udevdir\@,$(udevdir),g' \ | ||
-e 's,@udevruledir\@,$(udevruledir),g' \ | ||
-e 's,@sysconfdir\@,$(sysconfdir),g' \ | ||
'[email protected]' >'$@' | ||
|
||
distclean-local:: | ||
-$(RM) $(udevrule_DATA) | ||
|
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 |
---|---|---|
|
@@ -291,12 +291,14 @@ top_srcdir = @top_srcdir@ | |
udevdir = @udevdir@ | ||
udevruledir = @udevruledir@ | ||
udevrule_DATA = \ | ||
60-zpool.rules \ | ||
60-zvol.rules | ||
$(top_srcdir)/udev/rules.d/60-zpool.rules \ | ||
$(top_srcdir)/udev/rules.d/60-zvol.rules \ | ||
$(top_srcdir)/udev/rules.d/90-zfs.rules | ||
|
||
EXTRA_DIST = \ | ||
60-zpool.rules.in \ | ||
60-zvol.rules.in | ||
$(top_srcdir)/udev/rules.d/60-zpool.rules.in \ | ||
$(top_srcdir)/udev/rules.d/60-zvol.rules.in \ | ||
$(top_srcdir)/udev/rules.d/90-zfs.rules.in | ||
|
||
all: all-am | ||
|
||
|
@@ -509,7 +511,12 @@ uninstall-am: uninstall-udevruleDATA | |
|
||
|
||
$(udevrule_DATA): | ||
-$(SED) -e 's,@udevdir\@,$(udevdir),g' '[email protected]' >'$@' | ||
-$(SED) -e 's,@bindir\@,$(bindir),g' \ | ||
-e 's,@sbindir\@,$(sbindir),g' \ | ||
-e 's,@udevdir\@,$(udevdir),g' \ | ||
-e 's,@udevruledir\@,$(udevruledir),g' \ | ||
-e 's,@sysconfdir\@,$(sysconfdir),g' \ | ||
'[email protected]' >'$@' | ||
|
||
distclean-local:: | ||
-$(RM) $(udevrule_DATA) | ||
|
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