aboutsummaryrefslogtreecommitdiffstats
path: root/rpm
diff options
context:
space:
mode:
authorAllKind <[email protected]>2023-11-27 22:17:48 +0100
committerTony Hutter <[email protected]>2023-11-28 15:19:07 -0800
commit3b267e72de6f98fb911af9477d2c48de3c36c6dd (patch)
tree34c1f9ab40d623fca02377ebb4d297c13f0bcebb /rpm
parent349fb77f1167c287e9d2bf8bab5f1934d8b2672c (diff)
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 <[email protected]> Signed-off-by: Mart Frauenlob <[email protected]> Closes #15576
Diffstat (limited to 'rpm')
-rw-r--r--rpm/generic/zfs-dkms.spec.in1
1 files changed, 1 insertions, 0 deletions
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.