Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package uki for openSUSE:Factory checked in at 2026-06-22 17:38:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/uki (Old) and /work/SRC/openSUSE:Factory/.uki.new.1956 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "uki" Mon Jun 22 17:38:27 2026 rev:5 rq:1360995 version:MACRO_MACRO_kMACRO Changes: -------- --- /work/SRC/openSUSE:Factory/uki/uki.changes 2025-08-05 14:21:08.232863129 +0200 +++ /work/SRC/openSUSE:Factory/.uki.new.1956/uki.changes 2026-06-22 17:38:31.048847632 +0200 @@ -1,0 +2,5 @@ +Fri Jun 19 06:34:36 UTC 2026 - Jan Engelhardt <[email protected]> + +- Make scriptlets compatible with POSIX sh + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ uki.spec ++++++ --- /var/tmp/diff_new_pack.wHJ1pw/_old 2026-06-22 17:38:31.796873790 +0200 +++ /var/tmp/diff_new_pack.wHJ1pw/_new 2026-06-22 17:38:31.800873930 +0200 @@ -1,7 +1,7 @@ # # spec file for package uki # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -170,18 +170,19 @@ %posttrans # Change type of the file system partition from 8300 to 8304 +# N.B. This hacky logic only works with e.g. /dev/sda1 but not /dev/mmcblk0p1 dev_name=$(df -h / | tail -1 | cut -d ' ' -f1) -dev_part=${dev_name::-1} -dev_no=${dev_name: -1} -if [[ $dev_no && $dev_part ]] &&\ - [[ -b "${dev_part}${dev_no}" ]]; then +dev_part="${dev_name%%?}" +dev_no="${dev_name#$dev_part}" +if [ -n "$dev_no" ] && [ -n "$dev_part" ] && \ + [ -b "$dev_part$dev_no" ]; then echo "Change partition type of ${dev_part}${dev_no} in 8304" sgdisk -t $dev_no:8304 $dev_part || true fi # Add menuentry to bootloaders entry_added=0 -if [ $(command -v sdbootutil) ] && [ "$(sdbootutil bootloader)" == "systemd-boot" ]; then - if (command -v sdbootutil > /dev/null 2>&1); then +if [ -n "$(command -v sdbootutil)" ] && [ "$(sdbootutil bootloader)" = "systemd-boot" ]; then + if command -v sdbootutil >/dev/null 2>&1; then if uki-tool -q sdboot \ --add \ --all-ukis \ @@ -194,7 +195,7 @@ fi fi else - if (command -v grub2-mkconfig > /dev/null 2>&1); then + if command -v grub2-mkconfig >/dev/null 2>&1; then if uki-tool -q grub2 \ --add \ --all-ukis \ @@ -209,14 +210,14 @@ fi cert_file=$(basename %{cert_install_dir}/%{efi_name}-*.crt) cert_file_p="%{cert_install_dir}/${cert_file}" -if test "$entry_added" = "1" -a -f ${cert_file_p} ; then +if [ "$entry_added" = "1" ] && [ -f "$cert_file_p" ]; then echo -e "\033[0;32mTo enroll the uki certificate key please run:\033[0m" echo -e "\033[0;32mmokutil \ --import ${cert_file_p}\033[0m" fi %preun -if [ $(command -v sdbootutil) ] && [ "$(sdbootutil bootloader)" == "systemd-boot" ]; then +if [ -n "$(command -v sdbootutil)" ] && [ "$(sdbootutil bootloader)" = "systemd-boot" ]; then if uki-tool -q sdboot \ --remove \ --all-ukis \ @@ -227,7 +228,7 @@ exit 0 fi else - if (command -v grub2-mkconfig > /dev/null 2>&1); then + if command -v grub2-mkconfig >/dev/null 2>&1; then if uki-tool -q grub2 \ --remove \ --all-ukis \ @@ -241,7 +242,6 @@ fi %files -%defattr(-,root,root) %attr(0644, root, root) %{kernel_module_directory}/%{uname}/%{efi_name}.efi %{kernel_module_directory}/%{uname}/%{efi_name}.efi.extra.d %if %{cert_install}
