Skip to content

Commit

Permalink
and more
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Jan 18, 2025
1 parent 0dab8e1 commit 865fe57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dual-sign-zfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ if [[ "${DUAL_SIGN}" == "true" ]]; then
done
find /var/cache/rpms/kmods/zfs -type f -name "\kmod-*.rpm" | grep -v debug | grep -v devel
RPMPATH=$(find /var/cache/rpms/kmods/zfs -type f -name "\kmod-*.rpm" | grep -v debug | grep -v devel)
RPM=$(basename $(${RPMPATH})
rpmrebuild --additional=--buildroot=/tmp/buildroot --batch ${RPM}
RPM=$(basename "${RPMPATH}")
rpmrebuild --additional=--buildroot=/tmp/buildroot --batch "${RPM}"
rm -rf /usr/lib/modules/"${KERNEL}"/extra
dnf reinstall -y /root/rpmbuild/RPMS/"$(uname -m)"/kmod-*-"${KERNEL}"-*.rpm
for module in /usr/lib/modules/"${KERNEL}"/extra/*/*.ko*; do
Expand Down
2 changes: 1 addition & 1 deletion dual-sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if [[ "${DUAL_SIGN}" == "true" ]]; then
done
find /var/cache/akmods -type f -name "\kmod-*.rpm"
for RPMPATH in $(find /var/cache/akmods/ -type f -name \kmod-*.rpm); do
RPM=$(basename ${RPMPATH})
RPM=$(basename "${RPMPATH}")
mkdir -p /tmp/buildroot
cp -r /{usr,lib} /tmp/buildroot
rpmrebuild --additional=--buildroot=/tmp/buildroot --batch "$RPM"
Expand Down

0 comments on commit 865fe57

Please sign in to comment.