Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package nvme-cli for openSUSE:Factory checked in at 2025-03-20 19:23:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/nvme-cli (Old) and /work/SRC/openSUSE:Factory/.nvme-cli.new.2696 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "nvme-cli" Thu Mar 20 19:23:28 2025 rev:80 rq:1254208 version:2.12 Changes: -------- --- /work/SRC/openSUSE:Factory/nvme-cli/nvme-cli.changes 2025-03-18 17:41:38.122377990 +0100 +++ /work/SRC/openSUSE:Factory/.nvme-cli.new.2696/nvme-cli.changes 2025-03-20 19:23:30.101941962 +0100 @@ -1,0 +2,6 @@ +Tue Mar 18 16:16:08 UTC 2025 - Martin Wilck <[email protected]> + +- Don't generate /etc/nvme/hostnqn in build environments + (bsc#1238038) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ nvme-cli.spec ++++++ --- /var/tmp/diff_new_pack.tyWV8M/_old 2025-03-20 19:23:30.917975688 +0100 +++ /var/tmp/diff_new_pack.tyWV8M/_new 2025-03-20 19:23:30.921975854 +0100 @@ -127,13 +127,19 @@ %service_add_pre %{services} [email protected] %post -if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then +if [ ! -e /.buildenv ] && [ ! -e /image/config.xml ]; then + if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then %{_bindir}/echo "Generating host NQN." %{_sbindir}/nvme gen-hostnqn > %{_sysconfdir}/nvme/hostnqn -fi -if [ ! -s %{_sysconfdir}/nvme/hostid ]; then + fi + + if [ ! -s %{_sysconfdir}/nvme/hostid ]; then sed -nr 's/.*:uuid:(.*?)$/\1/p' %{_sysconfdir}/nvme/hostnqn > %{_sysconfdir}/nvme/hostid + fi +else + %{_bindir}/echo "Build environment detected, not generating host NQN." fi + %service_add_post %{services} [email protected] %preun
