Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package sdbootutil for openSUSE:Factory 
checked in at 2025-11-27 15:19:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sdbootutil (Old)
 and      /work/SRC/openSUSE:Factory/.sdbootutil.new.14147 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sdbootutil"

Thu Nov 27 15:19:08 2025 rev:84 rq:1320143 version:1+git20251126.f7a46a1

Changes:
--------
--- /work/SRC/openSUSE:Factory/sdbootutil/sdbootutil.changes    2025-11-20 
14:47:31.023123028 +0100
+++ /work/SRC/openSUSE:Factory/.sdbootutil.new.14147/sdbootutil.changes 
2025-11-27 15:19:30.863801162 +0100
@@ -1,0 +2,6 @@
+Wed Nov 26 10:21:51 UTC 2025 - Alberto Planas Dominguez <[email protected]>
+
+- Update to version 1+git20251126.f7a46a1:
+  * Improve error messages
+
+-------------------------------------------------------------------

Old:
----
  sdbootutil-1+git20251119.0bee866.obscpio

New:
----
  sdbootutil-1+git20251126.f7a46a1.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sdbootutil.spec ++++++
--- /var/tmp/diff_new_pack.7ePa8Y/_old  2025-11-27 15:19:31.551830176 +0100
+++ /var/tmp/diff_new_pack.7ePa8Y/_new  2025-11-27 15:19:31.551830176 +0100
@@ -18,7 +18,7 @@
 
 %global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
 Name:           sdbootutil
-Version:        1+git20251119.0bee866
+Version:        1+git20251126.f7a46a1
 Release:        0
 Summary:        Bootctl wrapper for BLS boot loaders
 License:        MIT

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.7ePa8Y/_old  2025-11-27 15:19:31.599832200 +0100
+++ /var/tmp/diff_new_pack.7ePa8Y/_new  2025-11-27 15:19:31.603832368 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/openSUSE/sdbootutil.git</param>
-              <param 
name="changesrevision">0bee866bdd7418de3d97323e800c7bc72b0a0861</param></service></servicedata>
+              <param 
name="changesrevision">f7a46a1db8ab2b7e07702e5acaea51c7f6fc4234</param></service></servicedata>
 (No newline at EOF)
 

++++++ sdbootutil-1+git20251119.0bee866.obscpio -> 
sdbootutil-1+git20251126.f7a46a1.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/sdbootutil-1+git20251119.0bee866/sdbootutil 
new/sdbootutil-1+git20251126.f7a46a1/sdbootutil
--- old/sdbootutil-1+git20251119.0bee866/sdbootutil     2025-11-19 
08:31:41.000000000 +0100
+++ new/sdbootutil-1+git20251126.f7a46a1/sdbootutil     2025-11-26 
11:19:13.000000000 +0100
@@ -126,21 +126,21 @@
                  --default-snapshot    [SNAPSHOT] refers to the default 
snapshot
                  --ask-key             Ask recovery Key when initial enrollment
                                        (or randomly generated)
-                 --ask-pin             Ask recovery PIN for re-enrollment
-                                       Ask TPM2 PIN when initial enrollment
+                 --ask-pin             Ask recovery PIN for re-enrollment or 
ask TPM2 PIN
+                                       when initial enrollment
                  --ask-pw              Ask password when initial enrollment
                  --method              "tpm2", "tpm2+pin", "fido2", 
"password", "recovery-key"
                  --signed-policy       Use signed policy for TPM2 enrollment
                  --no-measure-pcr      During enrollment, do not include PCR 
15 protection
                  --measure-pcr         Force update of PCR 15 prediction for 
LUKS2 volume key
-                                       Requires LUKS2 password to accessing 
the volume key
+                                       (requires LUKS2 password to accessing 
the volume key)
                  --pcr                 Comma seperated list of PCRs to enroll
                  --devices             Comma separated list of devices to 
enroll or unenroll
-                                       By default all (not ignored) devices 
are [un]enrolled
+                                       (by default all (not ignored) devices 
are [un]enrolled)
                  --force               Force certain operations inside a 
transaction
                  -v, --verbose         More verbose output
                  --start-trace-code    Create /var/log/sdbootutil.log to trace 
the code.
-                                       Verbose output is enabled
+                                       (verbose output is enabled)
                  --stop-trace-code     Remove /var/log/sdbootutil.log to stop 
tracing the code
                  -h, --help            This screen
 
@@ -262,7 +262,7 @@
 dbg()
 {
        [ "${verbose:-0}" -gt 1 ] || return 0
-       echo "DEBUG: $*" >&2
+       echo -e "DEBUG: $*" >&2
 }
 
 dbg_var()
@@ -281,17 +281,17 @@
 info()
 {
        [ "${verbose:-0}" -gt 0 ] || return 0
-       echo "$@" >&2
+       echo -e "$@" >&2
 }
 
 warn()
 {
-       echo "WARNING: $*" >&2
+       echo -e "WARNING: $*" >&2
 }
 
 err()
 {
-       echo "ERROR: $*" >&2
+       echo -e "ERROR: $*" >&2
        exit 1
 }
 
@@ -3440,7 +3440,13 @@
                        ;;
 
                *)
-                       err "Unexpected parameter for --method=: $arg_method"
+                       local msg
+                       if [ -n "$arg_method" ]; then
+                               msg="Unexpected parameter for --method=: 
$arg_method"
+                       else
+                               msg="Missing value for parameter --method="
+                       fi
+                       err "$msg\nValid methods: 
tpm2,tpm2+pin,fido2,password,recovery-key"
                        ;;
        esac
 }
@@ -3633,7 +3639,27 @@
                        ;;
 
                *)
-                       err "Unexpected parameter for --method=: $arg_method"
+                       local msg
+                       if [ -n "$arg_method" ]; then
+                               msg="Unexpected parameter for --method=: 
$arg_method"
+                       else
+                               msg="Missing value for parameter --method="
+                       fi
+
+                       local methods=()
+                       local line
+                       while read -r line; do
+                               [[ "$line" =~ [[:digit:]]+[[:space:]] ]] || 
continue
+                               IFS=" " read -r -a s <<<"$line"
+                               methods+=("${s[1]}")
+                       done < <(systemd-cryptenroll "$dev")
+                       if [ "${#methods[@]}" -eq 0 ]; then
+                               err "$msg\nThe device $dev has no enrollment"
+                       else
+                               local methods
+                               methods="$(IFS=','; echo "${methods[*]}")"
+                               err "$msg\nMethods present in $dev: $methods"
+                       fi
                        ;;
        esac
 }

++++++ sdbootutil.obsinfo ++++++
--- /var/tmp/diff_new_pack.7ePa8Y/_old  2025-11-27 15:19:31.799840635 +0100
+++ /var/tmp/diff_new_pack.7ePa8Y/_new  2025-11-27 15:19:31.803840803 +0100
@@ -1,5 +1,5 @@
 name: sdbootutil
-version: 1+git20251119.0bee866
-mtime: 1763537501
-commit: 0bee866bdd7418de3d97323e800c7bc72b0a0861
+version: 1+git20251126.f7a46a1
+mtime: 1764152353
+commit: f7a46a1db8ab2b7e07702e5acaea51c7f6fc4234
 

Reply via email to