Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rdi-installer for openSUSE:Factory 
checked in at 2026-12-03 13:56:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rdi-installer (Old)
 and      /work/SRC/openSUSE:Factory/.rdi-installer.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rdi-installer"

Thu Dec  3 13:56:20 2026 rev:6 rq:1402458 version:1.3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rdi-installer/rdi-installer.changes      
2026-10-28 17:49:47.490213630 +0100
+++ /work/SRC/openSUSE:Factory/.rdi-installer.new.1340718/rdi-installer.changes 
2026-12-03 13:57:45.859348918 +0100
@@ -1,0 +2,14 @@
+Wed Dec 02 15:16:13 UTC 2026 - Thorsten Kukuk <[email protected]>
+
+- Update to version 1.3.2:
+  * Release version 1.3.2
+  * Use import-pubring.pgp (/etc and /usr/lib)
+
+-------------------------------------------------------------------
+Tue Dec 01 16:03:14 UTC 2026 - Thorsten Kukuk <[email protected]>
+
+- Update to version 1.3.1:
+  * Release version 1.3.1
+  * Fix waitpid() call in case it got interrrupted
+
+-------------------------------------------------------------------

Old:
----
  rdi-installer-1.3.0.tar.xz

New:
----
  rdi-installer-1.3.2.tar.xz

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

Other differences:
------------------
++++++ rdi-installer.spec ++++++
--- /var/tmp/diff_new_pack.uaUXmP/_old  2026-12-03 13:57:46.819390512 +0100
+++ /var/tmp/diff_new_pack.uaUXmP/_new  2026-12-03 13:57:46.821390599 +0100
@@ -16,7 +16,7 @@
 #
 
 Name:           rdi-installer
-Version:        1.3.0
+Version:        1.3.2
 Release:        0
 Summary:        Utility to write disk images to hard disk
 License:        MIT

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.uaUXmP/_old  2026-12-03 13:57:46.877393025 +0100
+++ /var/tmp/diff_new_pack.uaUXmP/_new  2026-12-03 13:57:46.880393155 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/thkukuk/rdi-installer.git</param>
-<param 
name="changesrevision">0a629c290169e717413703cbfe986e52124147c0</param></service></servicedata>
+<param 
name="changesrevision">dcaeae1a72523c419d4b56c3e8a25f38014c7251</param></service></servicedata>
 (No newline at EOF)
 

++++++ rdi-installer-1.3.0.tar.xz -> rdi-installer-1.3.2.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/README.md 
new/rdi-installer-1.3.2/README.md
--- old/rdi-installer-1.3.0/README.md   2026-10-28 12:12:50.000000000 +0100
+++ new/rdi-installer-1.3.2/README.md   2026-12-02 16:10:18.000000000 +0100
@@ -47,9 +47,9 @@
 
 The `rdi-installer` application tries to download a gpg signed sha256 hash for 
an image and uses that to verify the image. If the image URL is 
`https://download.example.org/example-image.raw.xz`, attempts will be made to 
also download the files 
`https://download.example.org/example-image.raw.xz.sha256` and 
`https://download.example.org/example-image.raw.xz.sha256.asc`.
 
-Signature verification is done by `gpgv` with a keyring at 
`/etc/systemd/import-pubring.gpg`. The signing key must be imported into that 
keyring for verification to succeed. If the signature file cannot be downloaded 
or verification fails, the installer will warn the user but still allow the 
installation to proceed.
+Signature verification is done by `gpgv` with the keyrings 
`/usr/lib/systemd/import-pubring.pgp` and `/etc/systemd/import-pubring.pgp` 
(whichever of the two exist). The signing key must be imported into one of 
these keyrings for verification to succeed. If the signature file cannot be 
downloaded or verification fails, the installer will warn the user but still 
allow the installation to proceed.
 
-The keyring already contains the key used for the official repositories. To 
verify images signed with a different key, import that key at boot time via the 
`rdii.pubkey` option, processed by `rdii-pubkey-setup.service`.
+The vendor keyring (`/usr/lib/systemd/import-pubring.pgp`) already contains 
the key used for the official repositories. To verify images signed with a 
different key, import that key at boot time via the `rdii.pubkey` option, 
processed by `rdii-pubkey-setup.service`, which adds it to 
`/etc/systemd/import-pubring.pgp`.
 
 ## Options
 
@@ -264,10 +264,11 @@
 This script provides a systemd service and a bash script that parses
 the Linux kernel command line (`/proc/cmdline`) and config file at
 boot time and imports additional gpg public keys into the keyring
-(`/etc/systemd/import-pubring.gpg`) used by `rdi-installer` to verify
-downloaded raw disk images. This is needed if an image is signed with
-a key other than the one used for the official repositories, which is
-already contained in the keyring.
+(`/etc/systemd/import-pubring.pgp`), checked by `rdi-installer` in
+addition to the vendor keyring (`/usr/lib/systemd/import-pubring.pgp`)
+when verifying downloaded raw disk images. This is needed if an image
+is signed with a key other than the one used for the official
+repositories, which is already contained in the vendor keyring.
 
 | Parameter | Format | Description |
 | --------- | ------ | ----------- |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/include/exec_cmd.h 
new/rdi-installer-1.3.2/include/exec_cmd.h
--- old/rdi-installer-1.3.0/include/exec_cmd.h  2026-10-28 12:12:50.000000000 
+0100
+++ new/rdi-installer-1.3.2/include/exec_cmd.h  2026-12-02 16:10:18.000000000 
+0100
@@ -3,3 +3,4 @@
 #pragma once
 
 extern int exec_cmd(bool use_ncurses, const char *cmd, ...);
+extern int exec_cmdv(bool use_ncurses, const char *cmd, char *const argv[]);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/lib/exec_cmd.c 
new/rdi-installer-1.3.2/lib/exec_cmd.c
--- old/rdi-installer-1.3.0/lib/exec_cmd.c      2026-10-28 12:12:50.000000000 
+0100
+++ new/rdi-installer-1.3.2/lib/exec_cmd.c      2026-12-02 16:10:18.000000000 
+0100
@@ -22,7 +22,6 @@
   _cleanup_free_ char **argv = NULL;
   va_list args, args_copy;
   int argc;
-  int r;
 
   argc = 0;
   va_start(args, cmd);
@@ -43,6 +42,17 @@
   argv[argc] = NULL;
   va_end(args);
 
+  return exec_cmdv(use_ncurses, cmd, argv);
+}
+
+/* Executes a command using posix_spawnp and waits for it to finish.
+   Returns 0 on success, -errno on failure, > 0 exit code of the
+   called command. */
+int
+exec_cmdv(bool use_ncurses, const char *cmd, char *const argv[])
+{
+  int r;
+
   pid_t pid;
   if (use_ncurses)
     reset_shell_mode();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/man/rdii-config.7.xml 
new/rdi-installer-1.3.2/man/rdii-config.7.xml
--- old/rdi-installer-1.3.0/man/rdii-config.7.xml       2026-10-28 
12:12:50.000000000 +0100
+++ new/rdi-installer-1.3.2/man/rdii-config.7.xml       2026-12-02 
16:10:18.000000000 +0100
@@ -387,9 +387,11 @@
             ASCII armored gpg public key is downloaded from that URL. Otherwise
             the value is treated as a Base64 encoded ASCII armored gpg public
             key and decoded directly. In both cases the key is imported into
-            the keyring <filename>/etc/systemd/import-pubring.gpg</filename>
-            used by <command>rdi-installer</command> to verify downloaded
-            images. May be specified more than once to import several keys.
+            the keyring <filename>/etc/systemd/import-pubring.pgp</filename>,
+            which <command>rdi-installer</command> checks in addition to the
+            vendor keyring 
<filename>/usr/lib/systemd/import-pubring.pgp</filename>
+            when verifying downloaded images. May be specified more than once
+            to import several keys.
           </para>
         </listitem>
       </varlistentry>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/rdi-installer-1.3.0/man/rdii-pubkey-setup.service.8.xml 
new/rdi-installer-1.3.2/man/rdii-pubkey-setup.service.8.xml
--- old/rdi-installer-1.3.0/man/rdii-pubkey-setup.service.8.xml 2026-10-28 
12:12:50.000000000 +0100
+++ new/rdi-installer-1.3.2/man/rdii-pubkey-setup.service.8.xml 2026-12-02 
16:10:18.000000000 +0100
@@ -22,13 +22,14 @@
     </para>
     <para>
       <command>rdi-installer</command> verifies downloaded raw disk images
-      with <command>gpgv</command> against the keyring
-      <filename>/etc/systemd/import-pubring.gpg</filename>, which already
-      contains the key used for the official repositories. If an image is
-      signed with a different key, that key must be imported into the keyring
-      first. This service allows doing so dynamically at boot via the
-      <literal>rdii.pubkey</literal> parameter, without having to rebuild the
-      installer image.
+      with <command>gpgv</command> against the vendor keyring
+      <filename>/usr/lib/systemd/import-pubring.pgp</filename>, which already
+      contains the key used for the official repositories, and the keyring
+      <filename>/etc/systemd/import-pubring.pgp</filename>, if it exists. If
+      an image is signed with a different key, that key must be imported into
+      the latter keyring first. This service allows doing so dynamically at
+      boot via the <literal>rdii.pubkey</literal> parameter, without having to
+      rebuild the installer image.
     </para>
   </refsect1>
 
@@ -57,8 +58,10 @@
           </para>
           <para>
             In both cases the key is added to the keyring
-            <filename>/etc/systemd/import-pubring.gpg</filename> used by
-            <command>rdi-installer</command> to verify downloaded images.
+            <filename>/etc/systemd/import-pubring.pgp</filename>, checked by
+            <command>rdi-installer</command> in addition to the vendor
+            keyring <filename>/usr/lib/systemd/import-pubring.pgp</filename>
+            when verifying downloaded images.
             <literal>rdii.pubkey</literal> may be specified more than once
             to import several keys.
           </para>
@@ -83,11 +86,17 @@
         </listitem>
       </varlistentry>
       <varlistentry>
-        <term><filename>/etc/systemd/import-pubring.gpg</filename></term>
+        <term><filename>/etc/systemd/import-pubring.pgp</filename></term>
         <listitem>
           <para>The gpg keyring the public key(s) are imported into.</para>
         </listitem>
       </varlistentry>
+      <varlistentry>
+        <term><filename>/usr/lib/systemd/import-pubring.pgp</filename></term>
+        <listitem>
+          <para>The vendor gpg keyring, checked by 
<command>rdi-installer</command> in addition to 
<filename>/etc/systemd/import-pubring.pgp</filename> when verifying downloaded 
images.</para>
+        </listitem>
+      </varlistentry>
     </variablelist>
   </refsect1>
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/meson.build 
new/rdi-installer-1.3.2/meson.build
--- old/rdi-installer-1.3.0/meson.build 2026-10-28 12:12:50.000000000 +0100
+++ new/rdi-installer-1.3.2/meson.build 2026-12-02 16:10:18.000000000 +0100
@@ -14,7 +14,7 @@
                   'werror=true',
                  'warning_level=2'],
   license : ['MIT', 'GPL-2.0-or-later'],
-  version : '1.3.0',
+  version : '1.3.2',
 )
 
 conf = configuration_data()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/scripts/rdii-pubkey-setup.sh 
new/rdi-installer-1.3.2/scripts/rdii-pubkey-setup.sh
--- old/rdi-installer-1.3.0/scripts/rdii-pubkey-setup.sh        2026-10-28 
12:12:50.000000000 +0100
+++ new/rdi-installer-1.3.2/scripts/rdii-pubkey-setup.sh        2026-12-02 
16:10:18.000000000 +0100
@@ -14,7 +14,7 @@
 # May be specified more than once to import several keys.
 
 RDII_CONFIG_FILE="/run/rdi-installer/rdii-config"
-KEYRING="/etc/systemd/import-pubring.gpg"
+KEYRING="/etc/systemd/import-pubring.pgp"
 
 cmdline=$(cat /proc/cmdline)
 
@@ -55,7 +55,6 @@
     fi
 
     WORKDIR=$(mktemp -d)
-    mkdir -m 700 "$WORKDIR/gnupg"
 
     case "$key" in
         http://*|https://*|ftp://*)
@@ -76,8 +75,8 @@
             ;;
     esac
 
-    if gpg --homedir "$WORKDIR/gnupg" --no-options --batch --import \
-           --no-default-keyring --keyring "$KEYRING" "$WORKDIR/key.asc"; then
+    gpg --dearmor < "$WORKDIR/key.asc" >> "$KEYRING"
+    if [ $? -eq 0 ]; then
         echo "rdii-pubkey-setup: Imported public key into $KEYRING"
     else
         echo "rdii-pubkey-setup: Failed to import public key into $KEYRING" >&2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/src/rdii-menu-installation.c 
new/rdi-installer-1.3.2/src/rdii-menu-installation.c
--- old/rdi-installer-1.3.0/src/rdii-menu-installation.c        2026-10-28 
12:12:50.000000000 +0100
+++ new/rdi-installer-1.3.2/src/rdii-menu-installation.c        2026-12-02 
16:10:18.000000000 +0100
@@ -26,9 +26,14 @@
 
 extern char **environ;
 
+#define VENDOR_KEYRING "/usr/lib/systemd/import-pubring.pgp"
+#define ADMIN_KEYRING "/etc/systemd/import-pubring.pgp"
+
 bool
 verify_signature(const char *file, char *key, char **error)
 {
+  char *argv[8];
+  int argc = 0;
   int r;
 
   MSG_FUNC("file='%s', key='%s'", file, key);
@@ -37,8 +42,29 @@
   move(2,2);
   refresh();
 
-  r = exec_cmd(true, "gpgv", "gpgv", "--keyring", 
"/etc/systemd/import-pubring.gpg",
-              (char *)key, (char *)file, NULL);
+  argv[argc++] = "gpgv";
+  if (access(VENDOR_KEYRING, R_OK) == 0)
+    {
+      argv[argc++] = "--keyring";
+      argv[argc++] = VENDOR_KEYRING;
+    }
+  if (access(ADMIN_KEYRING, R_OK) == 0)
+    {
+      argv[argc++] = "--keyring";
+      argv[argc++] = ADMIN_KEYRING;
+    }
+  if (argc == 1)
+    {
+      MSG_ERROR("Neither %s nor %s exist", VENDOR_KEYRING, ADMIN_KEYRING);
+      if (error)
+       *error = "No gpg keyring found to verify the signature";
+      return false;
+    }
+  argv[argc++] = key;
+  argv[argc++] = (char *)file;
+  argv[argc] = NULL;
+
+  r = exec_cmdv(true, "gpgv", argv);
   if (r < 0)
     {
       MSG_ERROR("Failed to run gpgv: %s", strerror(-r));
@@ -179,15 +205,20 @@
 wait_for_finish(pid_t pids[], const int pids_size)
 {
   int first_error = 0;
+
   // Wait for all processes to finish
   for (int i = 0; i < pids_size; i++)
     {
       int status;
 
-      if (waitpid(pids[i], &status, 0) == -1)
+      while (waitpid(pids[i], &status, 0) == -1)
        {
-         int r = errno;
          _cleanup_free_ char *err_msg = NULL;
+         int r = errno;
+
+         if (r == EINTR)
+           continue;
+
          if (asprintf(&err_msg, "waitpid(%i) failed: %s\n", i, strerror(r)) < 
0)
             return -ENOMEM;
           reset_prog_mode();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/rdi-installer-1.3.0/src/rdii-menu.c 
new/rdi-installer-1.3.2/src/rdii-menu.c
--- old/rdi-installer-1.3.0/src/rdii-menu.c     2026-10-28 12:12:50.000000000 
+0100
+++ new/rdi-installer-1.3.2/src/rdii-menu.c     2026-12-02 16:10:18.000000000 
+0100
@@ -206,9 +206,9 @@
   "Attempts will be made to also download:\n"
   "   https://download.example.org/example-image.raw.xz.sha256\n";
   "   https://download.example.org/example-image.raw.xz.sha256.asc\n\n";
-  "Signature verification is performed by gpgv using a keyring located at 
/etc/systemd/import-pubring.gpg. The signing key must be imported"
-  " into that keyring for verification to succeed. If the signature file 
cannot be downloaded or verification fails, the installer will warn "
-  "the user but still allow the installation to proceed.\n\n"
+  "Signature verification is performed by gpgv using the keyrings 
/usr/lib/systemd/import-pubring.pgp and /etc/systemd/import-pubring.pgp "
+  "(whichever of the two exist). The signing key must be imported into one of 
these keyrings for verification to succeed. If the signature "
+  "file cannot be downloaded or verification fails, the installer will warn 
the user but still allow the installation to proceed.\n\n"
   "Options\n"
   "-------\n"
   "Options can be provided either via the kernel cmdline during boot or 
through a configuration file.\n\n"
@@ -237,7 +237,8 @@
   " - Description: Minimum disk size for a device to be offered as 
installation target. Default: 10GB.\n\n"
   "* rdii.pubkey\n"
   " - Format: http(s)/ftp URL or Base64 Encoded\n"
-  " - Description: Imports an additional gpg public key into 
/etc/systemd/import-pubring.gpg, used to verify downloaded images signed "
+  " - Description: Imports an additional gpg public key into 
/etc/systemd/import-pubring.pgp, used alongside the vendor keyring at "
+  "/usr/lib/systemd/import-pubring.pgp to verify downloaded images signed "
   "with a key other than the official one. If the value is a URL, the key is 
downloaded from it; otherwise it is treated as a "
   "Base64 encoded key and decoded directly. Can be specified more than 
once.\n\n"
   "Note: Additional images can be specified using rdii.url1 and rdii.url2. 
When rdi-installer starts, the user will be prompted"

Reply via email to