dracut: skip zfsexpandknoweldge when zfs_devs is present in dracut
PR 1711 (https://github.com/dracutdevs/dracut/pull/1711) adds a zfs_devs function to dracut to detect the physical devices backing zfs pools. If this function exists in the version of dracut this module is being called from, then it does not need to run. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Savyasachee Jha <hi@savyasacheejha.com> Closes #13121
This commit is contained in:
parent
9e532d17f3
commit
b3ab290855
|
@ -57,6 +57,12 @@ array_contains () {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
|
# https://github.com/dracutdevs/dracut/pull/1711 provides a zfs_devs
|
||||||
|
# function to detect the physical devices backing zfs pools. If this
|
||||||
|
# function exists in the version of dracut this module is being called
|
||||||
|
# from, then it does not need to run.
|
||||||
|
type zfs_devs >/dev/null 2>&1 && return 1
|
||||||
|
|
||||||
local mp
|
local mp
|
||||||
local dev
|
local dev
|
||||||
local blockdevs
|
local blockdevs
|
||||||
|
|
Loading…
Reference in New Issue