Skip to content

Commit

Permalink
zfs-dkms: fix shell-init error message
Browse files Browse the repository at this point in the history
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
  • Loading branch information
AllKind authored Nov 27, 2023
1 parent cf33166 commit 95b68eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpm/generic/zfs-dkms.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 95b68eb

Please sign in to comment.