From 95b68eb693ba5b4785b260d592d8b5094f4c9576 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 d56967d7a..cd85dd28c 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.