From 74da5eb4688122001df31ae340466fc95d7a06f0 Mon Sep 17 00:00:00 2001 From: AllKind Date: Mon, 27 Nov 2023 22:17:48 +0100 Subject: [PATCH] zfs-dkms: fix shell-init error message If all zfs dkms modules have been removed, a shell-init error message may appear, because /var/lib/dkms/zfs does no longer exist. Resolve this by leaving the directory earlier on. Reviewed-by: Brian Behlendorf Signed-off-by: Mart Frauenlob Closes #15576 --- rpm/generic/zfs-dkms.spec.in | 1 + 1 file changed, 1 insertion(+) diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in index d56967d7a8..cd85dd28cf 100644 --- a/rpm/generic/zfs-dkms.spec.in +++ b/rpm/generic/zfs-dkms.spec.in @@ -103,6 +103,7 @@ if [ -d ${dkms_root}/%{module} ]; then fi fi done + cd ${dkms_root} fi # Uninstall this version of zfs dkms modules before installation of the package.