Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package opensuse-migration-tool for 
openSUSE:Factory checked in at 2026-02-04 21:08:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opensuse-migration-tool (Old)
 and      /work/SRC/openSUSE:Factory/.opensuse-migration-tool.new.1670 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "opensuse-migration-tool"

Wed Feb  4 21:08:55 2026 rev:15 rq:1330907 version:20260204.2cf77a3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/opensuse-migration-tool/opensuse-migration-tool.changes
  2026-01-26 12:35:24.219895091 +0100
+++ 
/work/SRC/openSUSE:Factory/.opensuse-migration-tool.new.1670/opensuse-migration-tool.changes
        2026-02-04 21:09:14.172487262 +0100
@@ -1,0 +2,10 @@
+Wed Feb 04 09:18:12 UTC 2026 - [email protected]
+
+- Update to version 20260204.2cf77a3:
+  * Drop requires on update-bootloader as it's not available on 15.6.
+    Install it in post-script on target of migration instead. boo#1255897
+  * Refine post-scritps
+  * Ensure update bootloader is installed in post scripts
+  * don't install selinux-policy-targeted-gaming by default
+
+-------------------------------------------------------------------

Old:
----
  opensuse-migration-tool-20260106.d2cfd39.obscpio

New:
----
  opensuse-migration-tool-20260204.2cf77a3.obscpio

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

Other differences:
------------------
++++++ opensuse-migration-tool.spec ++++++
--- /var/tmp/diff_new_pack.mQFfoJ/_old  2026-02-04 21:09:15.036523447 +0100
+++ /var/tmp/diff_new_pack.mQFfoJ/_new  2026-02-04 21:09:15.036523447 +0100
@@ -19,7 +19,7 @@
 
 
 Name:           opensuse-migration-tool
-Version:        20260106.d2cfd39
+Version:        20260204.2cf77a3
 Release:        0
 Summary:        Migration and Upgrade tool for openSUSE
 License:        Apache-2.0
@@ -32,7 +32,6 @@
 Requires:       gawk
 Requires:       jq
 Requires:       sed
-Requires:       update-bootloader
 BuildArch:      noarch
 
 %description

++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.mQFfoJ/_old  2026-02-04 21:09:15.068524788 +0100
+++ /var/tmp/diff_new_pack.mQFfoJ/_new  2026-02-04 21:09:15.072524955 +0100
@@ -1,5 +1,5 @@
-mtime: 1769423681
-commit: 251d8cc96eaa69b9a2d3674d6ee13a49a0740682085f6321f8902fa586a8c5c7
+mtime: 1770196837
+commit: 3a41db0d858affd54667ddf6e9ea080176fa96146fc360aefad13900fa787a60
 url: https://src.opensuse.org/lkocman/opensuse-migration-tool.git
 revision: main
 

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.mQFfoJ/_old  2026-02-04 21:09:15.112526631 +0100
+++ /var/tmp/diff_new_pack.mQFfoJ/_new  2026-02-04 21:09:15.116526798 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param 
name="url">https://github.com/openSUSE/opensuse-migration-tool.git</param>
-              <param 
name="changesrevision">d2cfd39fd633a3108d9dc7737752922b04181f6d</param></service></servicedata>
+              <param 
name="changesrevision">2cf77a3680517c5250da28b3f30c92008a164fe6</param></service></servicedata>
 (No newline at EOF)
 

++++++ build.specials.obscpio ++++++

++++++ build.specials.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore      1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore      2026-02-04 10:22:03.000000000 +0100
@@ -0,0 +1,2 @@
+.osc
+opensuse-migration-tool

++++++ opensuse-migration-tool-20260106.d2cfd39.obscpio -> 
opensuse-migration-tool-20260204.2cf77a3.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opensuse-migration-tool-20260106.d2cfd39/opensuse-migration-tool 
new/opensuse-migration-tool-20260204.2cf77a3/opensuse-migration-tool
--- old/opensuse-migration-tool-20260106.d2cfd39/opensuse-migration-tool        
2026-01-06 19:15:41.000000000 +0100
+++ new/opensuse-migration-tool-20260204.2cf77a3/opensuse-migration-tool        
2026-02-04 10:17:29.000000000 +0100
@@ -44,7 +44,6 @@
 fi
 
 # Set nice green instead of default blue
-
 if [[ $COLORTERM =~ ^(truecolor|24bit)$ ]]; then
        DIALOGRC="/usr/share/opensuse-migration-tool/dialogrc"
        if [ -f "$SCRIPT_DIR/dialogrc" ]; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepapparmor.sh 
new/opensuse-migration-tool-20260204.2cf77a3/scripts/10_keepapparmor.sh
--- old/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepapparmor.sh     
2026-01-06 19:15:41.000000000 +0100
+++ new/opensuse-migration-tool-20260204.2cf77a3/scripts/10_keepapparmor.sh     
2026-02-04 10:17:29.000000000 +0100
@@ -4,8 +4,6 @@
 # https://code.opensuse.org/leap/features/issue/182
 # 
https://en.opensuse.org/SDB:AppArmor#Switching_from_SELinux_to_AppArmor_for_Leap_16.0_and_Tumbleweed
 
-set -euo pipefail
-
 # Elevated permissions check unless DRYRUN is set
 if [ -z "${DRYRUN:-}" ]; then
     if [ "$EUID" -ne 0 ]; then
@@ -15,14 +13,6 @@
         test -w / || { echo "Please run the tool inside 'transactional-update 
shell' on Immutable systems."; exit 1; }
 fi
 
-UPDATE_BOOTLOADER=$(command -v update-bootloader)
-
-if [ -z "$UPDATE_BOOTLOADER" ]; then
-    # It was not found in the PATH; this is a critical dependency.
-    echo -e "No update-bootloader found in PATH. Exiting.\n" >&2
-    exit 1
-fi
-
 log() {
     echo "[MIGRATION] $1"
 }
@@ -32,31 +22,30 @@
     exit 1
 }
 
-# Check if we have security=apparmor as boot param
 if [[ "${1:-}" == "--check" ]]; then
-    if ! $UPDATE_BOOTLOADER --get-option security | grep apparmor &>/dev/null; 
then
-        exit 0
+    # Offer AppArmor switch only if SELinux is NOT installed
+    # So minimal or existing apparmor install, do not confuse users who are on 
SELinux
+    # and might accidentally migrate just because they see some cool option in 
the tool
+    if rpm -q patterns-base-selinux >/dev/null 2>&1; then
+      exit 1
     else
-        exit 1
+      exit 0
     fi
 fi
 
+# Ensure update-bootloader is available (Leap 16+)
+if ! command -v update-bootloader >/dev/null 2>&1; then
+    log "update-bootloader not found, installing it"
+    $DRYRUN zypper --non-interactive install --force-resolution 
update-bootloader \
+        || error_exit "Failed to install update-bootloader"
+fi
+
+log "Installing packages: patterns-base-apparmor"
+$DRYRUN zypper --non-interactive install -t pattern --force-resolution apparmor
+
 log "Drop any SELinux boot options"
 $DRYRUN update-bootloader --del-option "security=selinux"
 $DRYRUN update-bootloader --del-option "enforcing=1"
 $DRYRUN update-bootloader --del-option "selinux=1"
 log "Adding AppArmor boot options"
 $DRYRUN update-bootloader --add-option "security=apparmor"
-
-if rpm -q patterns-base-apparmor &>/dev/null; then
-    log "Package patterns-base-apparmor is already installed. Skipping."
-    exit 0
-
-else
-    log "Installing packages: patterns-base-apparmor"
-    if $DRYRUN zypper --non-interactive install --force-resolution 
patterns-base-apparmor; then
-        log "Installation completed successfully."
-    else
-        error_exit "Package installation failed. Please check zypper logs or 
try again manually."
-    fi
-fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepselinux.sh 
new/opensuse-migration-tool-20260204.2cf77a3/scripts/10_keepselinux.sh
--- old/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepselinux.sh      
2026-01-06 19:15:41.000000000 +0100
+++ new/opensuse-migration-tool-20260204.2cf77a3/scripts/10_keepselinux.sh      
2026-02-04 10:17:29.000000000 +0100
@@ -5,8 +5,6 @@
 
 # 
https://en.opensuse.org/SDB:AppArmor#Switching_from_SELinux_to_AppArmor_for_Leap_16.0_and_Tumbleweed
 
-set -euo pipefail
-
 # Elevated permissions check unless DRYRUN is set
 if [ -z "${DRYRUN:-}" ]; then
     if [ "$EUID" -ne 0 ]; then
@@ -16,13 +14,6 @@
         test -w / || { echo "Please run the tool inside 'transactional-update 
shell' on Immutable systems."; exit 1; }
 fi  
 
-UPDATE_BOOTLOADER=$(command -v update-bootloader)
-
-if [ -z "$UPDATE_BOOTLOADER" ]; then
-    # It was not found in the PATH
-    echo -e "No update-bootloader found!\n"
-fi
-
 log() {
     echo "[MIGRATION] $1"
 }
@@ -32,22 +23,21 @@
     exit 1
 }
 
-# Check if we have security=selinux as boot param
 if [[ "${1:-}" == "--check" ]]; then
-    if ! $UPDATE_BOOTLOADER --get-option security | grep selinux &>/dev/null; 
then
-        exit 0
+    # Offer the option only if SELinux base pattern isn't installed yet
+    if rpm -q patterns-base-selinux >/dev/null 2>&1; then
+      exit 1
     else
-        exit 1
+      exit 0
     fi
 fi
 
-log "Drop AppArmor boot options"
-$DRYRUN update-bootloader --del-option "security=apparmor"
-
-log "Add any SELinux boot options"
-$DRYRUN update-bootloader --add-option "security=selinux"
-$DRYRUN update-bootloader --add-option "enforcing=1"
-$DRYRUN update-bootloader --add-option "selinux=1"
+# Ensure update-bootloader is available (Leap 16+)
+if ! command -v update-bootloader >/dev/null 2>&1; then
+    log "update-bootloader not found, installing it"
+    $DRYRUN zypper --non-interactive install --force-resolution 
update-bootloader \
+        || error_exit "Failed to install update-bootloader"
+fi
 
 if rpm -q patterns-base-apparmor &>/dev/null; then
     log "Uninstalling packages: patterns-base-apparmor"
@@ -58,7 +48,13 @@
     fi
 fi
 # user said he wants SElinux, so install SElinux pattern
-log "Installing packages: patterns-selinux selinux-policy-targeted-gaming"
+log "Installing packages: patterns-base-selinux"
 $DRYRUN zypper --non-interactive install -t pattern --force-resolution selinux
-# this SElinux package is providing rules for gaming
-$DRYRUN zypper --non-interactive install selinux-policy-targeted-gaming
+
+log "Drop AppArmor boot options"
+$DRYRUN update-bootloader --del-option "security=apparmor"
+
+log "Add any SELinux boot options"
+$DRYRUN update-bootloader --add-option "security=selinux"
+$DRYRUN update-bootloader --add-option "enforcing=1"
+$DRYRUN update-bootloader --add-option "selinux=1"
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opensuse-migration-tool-20260106.d2cfd39/scripts/20_ia32.sh 
new/opensuse-migration-tool-20260204.2cf77a3/scripts/20_ia32.sh
--- old/opensuse-migration-tool-20260106.d2cfd39/scripts/20_ia32.sh     
2026-01-06 19:15:41.000000000 +0100
+++ new/opensuse-migration-tool-20260204.2cf77a3/scripts/20_ia32.sh     
2026-02-04 10:17:29.000000000 +0100
@@ -3,8 +3,6 @@
 # SLES 16 disables 32bit support in kernel by default
 # Things like Steam, Proton, Virtualbox will need it
 
-set -euo pipefail
-
 # Elevated permissions check unless DRYRUN is set
 if [ -z "${DRYRUN:-}" ]; then
     if [ "$EUID" -ne 0 ]; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/opensuse-migration-tool-20260106.d2cfd39/scripts/20_pulse2pipewire.sh 
new/opensuse-migration-tool-20260204.2cf77a3/scripts/20_pulse2pipewire.sh
--- old/opensuse-migration-tool-20260106.d2cfd39/scripts/20_pulse2pipewire.sh   
2026-01-06 19:15:41.000000000 +0100
+++ new/opensuse-migration-tool-20260204.2cf77a3/scripts/20_pulse2pipewire.sh   
2026-02-04 10:17:29.000000000 +0100
@@ -4,8 +4,6 @@
 # https://code.opensuse.org/leap/features/issue/140
 # https://en.opensuse.org/openSUSE:Pipewire#Installation
 
-set -euo pipefail
-
 # Elevated permissions check unless DRYRUN is set
 if [ -z "${DRYRUN:-}" ]; then
     if [ "$EUID" -ne 0 ]; then

++++++ opensuse-migration-tool.obsinfo ++++++
--- /var/tmp/diff_new_pack.mQFfoJ/_old  2026-02-04 21:09:15.408539028 +0100
+++ /var/tmp/diff_new_pack.mQFfoJ/_new  2026-02-04 21:09:15.412539195 +0100
@@ -1,5 +1,5 @@
 name: opensuse-migration-tool
-version: 20260106.d2cfd39
-mtime: 1767723341
-commit: d2cfd39fd633a3108d9dc7737752922b04181f6d
+version: 20260204.2cf77a3
+mtime: 1770196649
+commit: 2cf77a3680517c5250da28b3f30c92008a164fe6
 

Reply via email to