Skip to content

Commit

Permalink
fix: change inputs to rpmrebuild (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman authored Jan 18, 2025
1 parent 699f1fe commit c4214d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dual-sign-zfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ if [[ "${DUAL_SIGN}" == "true" ]]; then
/tmp/dual-sign-check.sh "${KERNEL}" "${module}" "${PUBLIC_CHAIN}"
fi
done
rpmrebuild --additional=--buildroot=/tmp/buildroot --batch /var/cache/rpms/kmods/zfs/kmod-zfs-*.rpm
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 $(echo "${RPMPATH}" | sed 's/\.rpm//'))
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
3 changes: 2 additions & 1 deletion dual-sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ if [[ "${DUAL_SIGN}" == "true" ]]; then
fi
done
find /var/cache/akmods -type f -name "\kmod-*.rpm"
for RPM in $(find /var/cache/akmods/ -type f -name \kmod-*.rpm); do
for RPMPATH in $(find /var/cache/akmods/ -type f -name \kmod-*.rpm); do
RPM=$(basename $(echo "${RPMPATH}" | sed 's/\.rpm//'))
mkdir -p /tmp/buildroot
cp -r /{usr,lib} /tmp/buildroot
rpmrebuild --additional=--buildroot=/tmp/buildroot --batch "$RPM"
Expand Down

0 comments on commit c4214d4

Please sign in to comment.