Remove absolute paths to udev rules and binaries for dracut
Since dracut functions can locate both udev rules and binaries, there is no point in keeping absolute paths in the module setup script. It also breaks the --sysroot option in dracut. This commit removes mentions to absolute paths for binaries and udev rules. Reviewed-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Reviewed-by: Andrew J. Hesford <ajh@sideband.org> Signed-off-by: Savyasachee Jha <hi@savyasacheejha.com> Closes #13010
This commit is contained in:
parent
7f5a01bdd3
commit
ed66eafd05
|
@ -23,20 +23,13 @@ installkernel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
for i in "90-zfs.rules" "69-vdev.rules" "60-zvol.rules"; do
|
inst_rules 90-zfs.rules 69-vdev.rules 60-zvol.rules
|
||||||
if ! dracut_install "@udevdir@/$i"; then
|
|
||||||
dfatal "Failed to install udev rule: $i"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
inst_multiple \
|
inst_multiple \
|
||||||
@sbindir@/zgenhostid \
|
zgenhostid \
|
||||||
@sbindir@/zfs \
|
zfs \
|
||||||
@sbindir@/zpool \
|
zpool \
|
||||||
@udevdir@/vdev_id \
|
mount.zfs \
|
||||||
@udevdir@/zvol_id \
|
|
||||||
@mounthelperdir@/mount.zfs \
|
|
||||||
hostid \
|
hostid \
|
||||||
grep \
|
grep \
|
||||||
awk \
|
awk \
|
||||||
|
|
Loading…
Reference in New Issue