Skip to content

Commit

Permalink
Workaround for broken Tumbleweed package libfdisk1
Browse files Browse the repository at this point in the history
  • Loading branch information
laenion committed Mar 10, 2023
1 parent e3b5f69 commit 0f72404
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sbin/transactional-update.in
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,11 @@ if [ -n "${ZYPPER_ARG}" -o ${REWRITE_GRUB_CFG} -eq 1 \
SIZE_OF_UPDATES=`grep "install-summary.*space-usage-diff" ${TMPFILE} | sed -e 's|.*install-summary.*space-usage-diff=\"\([^"]*\)\".*|\1|g'`
NUM_OF_UPDATES=`grep "install-summary.*packages-to-change" ${TMPFILE} | sed -e 's|.*install-summary.*packages-to-change=\"\([^"]*\)\".*|\1|g'`
INCLUDES_KERNEL_PACKAGES=`grep 'solvable.*type="package"' ${TMPFILE} | grep 'name="kernel-'`
# Workaround for broken postuninstall
if grep 'solvable.*type="package"' ${TMPFILE} | grep 'name="libfdisk1"' | grep -q -e 'edition-old="2\.38\.1-[78]\.'; then
log_info "Applying workaround for broken libfdisk1"
tukit ${TUKIT_OPTS} call "${SNAPSHOT_ID}" rpm -e --justdb --nodeps libfdisk1
fi
rm -f ${TMPFILE}
TELEM_PAYLOAD="${TELEM_PAYLOAD}\npackages=${NUM_OF_UPDATES}\ndownload_size=${PACKAGE_UPDATES}\nspace-usage=${SIZE_OF_UPDATES}"
if [ "${NUM_OF_UPDATES}" = "0" ] || [ -z "${NUM_OF_UPDATES}" -a "${PACKAGE_UPDATES}" = "0" -a "${SIZE_OF_UPDATES}" = "0" ]; then
Expand Down

0 comments on commit 0f72404

Please sign in to comment.