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 <behlendorf1@llnl.gov>
Signed-off-by: Mart Frauenlob <AllKind@fastest.cc>
Closes openzfs#15576
  • Loading branch information
AllKind authored and gamanakis committed Jan 19, 2024
1 parent c6ee09b commit 00372d8
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 00372d8

Please sign in to comment.