Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package google-guest-configs for 
openSUSE:Factory checked in at 2023-06-09 20:37:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/google-guest-configs (Old)
 and      /work/SRC/openSUSE:Factory/.google-guest-configs.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "google-guest-configs"

Fri Jun  9 20:37:36 2023 rev:14 rq:1091423 version:20230526.00

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/google-guest-configs/google-guest-configs.changes    
    2023-02-27 13:55:02.813267041 +0100
+++ 
/work/SRC/openSUSE:Factory/.google-guest-configs.new.15902/google-guest-configs.changes
     2023-06-09 20:38:56.591078785 +0200
@@ -1,0 +2,12 @@
+Thu Jun  8 11:11:12 UTC 2023 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Update to version 20230526.00
+  * dracut: Add a new dracut module for gcp udev rules (#53)
+- from version 20230522.00
+  * src/lib/udev: only create symlinks for GCP devices (#52)
+- from version 20230515.00
+  * Replace `xxd` to `cut` for google_nvme_id (#49)
+- from version 20230328.00
+  * Set hostname: consider fully qualified static hostname (#46)
+
+-------------------------------------------------------------------

Old:
----
  google-guest-configs-20230217.01.tar.gz

New:
----
  google-guest-configs-20230526.00.tar.gz

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

Other differences:
------------------
++++++ google-guest-configs.spec ++++++
--- /var/tmp/diff_new_pack.BB8ZVR/_old  2023-06-09 20:38:57.259082664 +0200
+++ /var/tmp/diff_new_pack.BB8ZVR/_new  2023-06-09 20:38:57.263082687 +0200
@@ -23,7 +23,7 @@
 %define _udevdir %(pkg-config --variable udev_dir udev)
 %endif
 Name:           google-guest-configs
-Version:        20230217.01
+Version:        20230526.00
 Release:        0
 Summary:        Google Cloud Guest Configs
 License:        Apache-2.0

++++++ google-guest-configs-20230217.01.tar.gz -> 
google-guest-configs-20230526.00.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20230217.01/packaging/google-compute-engine.spec 
new/guest-configs-20230526.00/packaging/google-compute-engine.spec
--- old/guest-configs-20230217.01/packaging/google-compute-engine.spec  
2023-02-17 21:37:36.000000000 +0100
+++ new/guest-configs-20230526.00/packaging/google-compute-engine.spec  
2023-05-26 18:17:21.000000000 +0200
@@ -12,6 +12,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
+%global dracutdir %(pkg-config --variable=dracutdir dracut)
+
 # For EL7, if building on CentOS, override dist to be el7.
 %if 0%{?rhel} == 7
   %define dist .el7
@@ -49,8 +51,11 @@
 install -d %{buildroot}/%{_udevrulesdir}
 cp -a src/lib/udev/rules.d/* %{buildroot}/%{_udevrulesdir}
 cp -a src/lib/udev/google_nvme_id %{buildroot}/%{_udevrulesdir}/../
+install -d  %{buildroot}/%{dracutdir}
+cp -a src/lib/dracut/* %{buildroot}/%{dracutdir}/
 
 %files
+%attr(0755,-,-) /usr/lib/dracut/modules.d/30gcp-udev-rules/module-setup.sh
 %defattr(0644,root,root,0755)
 %attr(0755,-,-) %{_bindir}/*
 %attr(0755,-,-) /etc/dhcp/dhclient.d/google_hostname.sh
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20230217.01/src/lib/dracut/modules.d/30gcp-udev-rules/module-setup.sh
 
new/guest-configs-20230526.00/src/lib/dracut/modules.d/30gcp-udev-rules/module-setup.sh
--- 
old/guest-configs-20230217.01/src/lib/dracut/modules.d/30gcp-udev-rules/module-setup.sh
     1970-01-01 01:00:00.000000000 +0100
+++ 
new/guest-configs-20230526.00/src/lib/dracut/modules.d/30gcp-udev-rules/module-setup.sh
     2023-05-26 18:17:21.000000000 +0200
@@ -0,0 +1,14 @@
+#!/usr/bin/bash
+# Install 65-gce-disk-naming.rules and
+# google_nvme_id into the initramfs
+
+# called by dracut
+install() {
+  inst_multiple nvme grep sed
+  inst_simple /usr/lib/udev/google_nvme_id
+  inst_simple /usr/lib/udev/rules.d/65-gce-disk-naming.rules
+}
+
+installkernel() {
+  instmods nvme
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20230217.01/src/lib/udev/google_nvme_id 
new/guest-configs-20230526.00/src/lib/udev/google_nvme_id
--- old/guest-configs-20230217.01/src/lib/udev/google_nvme_id   2023-02-17 
21:37:36.000000000 +0100
+++ new/guest-configs-20230526.00/src/lib/udev/google_nvme_id   2023-05-26 
18:17:21.000000000 +0200
@@ -58,7 +58,7 @@
 #######################################
 function get_namespace_device_name() {
   local nvme_json
-  nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | xxd -p -seek 384 | xxd -p -r)"
+  nvme_json="$("$nvme_cli_bin" id-ns -b "$1" | cut -b 384-)"
   if [[ $? -ne 0 ]]; then
     return 1
   fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20230217.01/src/lib/udev/rules.d/65-gce-disk-naming.rules 
new/guest-configs-20230526.00/src/lib/udev/rules.d/65-gce-disk-naming.rules
--- old/guest-configs-20230217.01/src/lib/udev/rules.d/65-gce-disk-naming.rules 
2023-02-17 21:37:36.000000000 +0100
+++ new/guest-configs-20230526.00/src/lib/udev/rules.d/65-gce-disk-naming.rules 
2023-05-26 18:17:21.000000000 +0200
@@ -20,6 +20,11 @@
 # SCSI naming
 KERNEL=="sd*|vd*", IMPORT{program}="scsi_id --export --whitelisted -d 
$tempnode"
 
+# Don't symlink if it's not our devices. This is a fail-safe against these 
rules
+# running outside of GCP.
+KERNEL=="sd*|vd*", ENV{ID_VENDOR}!="Google", GOTO="gce_disk_naming_end"
+KERNEL=="nvme*", ATTRS{model}!="nvme_card*", GOTO="gce_disk_naming_end"
+
 # NVME Local SSD naming
 KERNEL=="nvme*n*", ATTRS{model}=="nvme_card", PROGRAM="/bin/sh -c 
'nsid=$$(echo %k|sed -re s/nvme[0-9]+n\([0-9]+\).\*/\\1/); echo $$((nsid-1))'", 
ENV{ID_SERIAL_SHORT}="local-nvme-ssd-%c"
 KERNEL=="nvme*", ATTRS{model}=="nvme_card", 
ENV{ID_SERIAL}="Google_EphemeralDisk_$env{ID_SERIAL_SHORT}"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/guest-configs-20230217.01/src/usr/bin/google_set_hostname 
new/guest-configs-20230526.00/src/usr/bin/google_set_hostname
--- old/guest-configs-20230217.01/src/usr/bin/google_set_hostname       
2023-02-17 21:37:36.000000000 +0100
+++ new/guest-configs-20230526.00/src/usr/bin/google_set_hostname       
2023-05-26 18:17:21.000000000 +0200
@@ -40,14 +40,15 @@
 #     a FQDN that is > 64 bytes.
 #
 # As a result, we set the host name whenever a new host name is set - ignoring 
when
-# old_fqdn is equal to new_host_name, to the truncated unqualified domain name.
+# old_hostname is equal to new_host_name's host part, to the truncated 
unqualified
+# domain name.
 
 hostnamecli=$(which hostname 2> /dev/null)
 if [ -x "$hostnamecli" ]; then
-  old_fqdn=$($hostnamecli -f)
+  old_hostname=$($hostnamecli)
 fi
 
-if [ -n "$new_host_name" ] && [ "$new_host_name" != "$old_fqdn" ] && ! echo 
"$new_host_name" | grep -iq "metadata.google.internal"; then
+if [ -n "$new_host_name" ] && [ "${new_host_name%%.*}" != "$old_hostname" ] && 
! echo "$new_host_name" | grep -iq "metadata.google.internal"; then
   hostname "${new_host_name%%.*}"
 
   # If NetworkManager is installed set the hostname with nmcli.

Reply via email to