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.