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-01-09 17:03:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/opensuse-migration-tool (Old)
and /work/SRC/openSUSE:Factory/.opensuse-migration-tool.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "opensuse-migration-tool"
Fri Jan 9 17:03:38 2026 rev:13 rq:1325990 version:20260106.d2cfd39
Changes:
--------
---
/work/SRC/openSUSE:Factory/opensuse-migration-tool/opensuse-migration-tool.changes
2025-11-19 14:58:24.303480397 +0100
+++
/work/SRC/openSUSE:Factory/.opensuse-migration-tool.new.1928/opensuse-migration-tool.changes
2026-01-09 17:04:52.751442006 +0100
@@ -1,0 +2,20 @@
+Thu Jan 08 17:09:32 UTC 2026 - [email protected]
+
+- Update to version 20260106.d2cfd39:
+ * Update scripts/20_pulse2pipewire.sh
+ * Update scripts/20_ia32.sh
+ * Update scripts/20_pulse2pipewire.sh
+ * Consistent no-use of sudo in migration scripts
+ * Update scripts/10_keepapparmor.sh
+ * Update scripts/10_keepselinux.sh
+ * Update scripts/10_keepapparmor.sh
+ * Update scripts/10_keepapparmor.sh
+ * Update opensuse-migration-tool
+ * Update scripts/10_keepselinux.sh
+ * Improve DRYRUN option to work well even from scripts
+ * Enable migration to SElinux with proper dryrun
+ * Update 10_keepselinux.sh
+ * Update 10_keepapparmor.sh
+ * Update 10_keepapparmor.sh
+
+-------------------------------------------------------------------
Old:
----
opensuse-migration-tool-20251029.ed0d12d.obscpio
New:
----
opensuse-migration-tool-20260106.d2cfd39.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ opensuse-migration-tool.spec ++++++
--- /var/tmp/diff_new_pack.a70Uaw/_old 2026-01-09 17:04:53.503473255 +0100
+++ /var/tmp/diff_new_pack.a70Uaw/_new 2026-01-09 17:04:53.507473421 +0100
@@ -19,7 +19,7 @@
Name: opensuse-migration-tool
-Version: 20251029.ed0d12d
+Version: 20260106.d2cfd39
Release: 0
Summary: Migration and Upgrade tool for openSUSE
License: Apache-2.0
++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.a70Uaw/_old 2026-01-09 17:04:53.563475748 +0100
+++ /var/tmp/diff_new_pack.a70Uaw/_new 2026-01-09 17:04:53.571476081 +0100
@@ -1,5 +1,5 @@
-mtime: 1763481938
-commit: 99f08127a2bad47e4c8d40549725c9114e81b38b0802f1fe21a6bcc60e6fe7c9
+mtime: 1767892494
+commit: aa39663d634f4ada2d5bde0ce81821f9aa410c46d112edfd671f72d569ce65fa
url: https://src.opensuse.org/lkocman/opensuse-migration-tool.git
revision: main
++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.a70Uaw/_old 2026-01-09 17:04:53.639478906 +0100
+++ /var/tmp/diff_new_pack.a70Uaw/_new 2026-01-09 17:04:53.651479404 +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">ed0d12d53c7eeab780c8c81b18a469d18c4a59df</param></service></servicedata>
+ <param
name="changesrevision">d2cfd39fd633a3108d9dc7737752922b04181f6d</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-01-08 18:31:32.000000000 +0100
@@ -0,0 +1,2 @@
+.osc
+opensuse-migration-tool
++++++ opensuse-migration-tool-20251029.ed0d12d.obscpio ->
opensuse-migration-tool-20260106.d2cfd39.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/opensuse-migration-tool-20251029.ed0d12d/opensuse-migration-tool
new/opensuse-migration-tool-20260106.d2cfd39/opensuse-migration-tool
--- old/opensuse-migration-tool-20251029.ed0d12d/opensuse-migration-tool
2025-10-29 21:29:32.000000000 +0100
+++ new/opensuse-migration-tool-20260106.d2cfd39/opensuse-migration-tool
2026-01-06 19:15:41.000000000 +0100
@@ -108,6 +108,7 @@
*) echo "Unknown option: $1"; exit 1 ;;
esac
done
+export DRYRUN
# Populate migration options
function fetch_versions() {
local filter="$1"
@@ -543,9 +544,13 @@
$DRYRUN $SCRIPT
done
+if [[ -v DRYRUN ]] ; then
+ echo "Dry run completed, feel free to continue. "
+else
#dialog --clear \
# --backtitle "[EXPERIMENTAL] Migration tool" \
# --title "Migration process completed" \
# --msgbox "\nMigration process completed.\nA reboot is recommended." 10 40
#
-echo "Migration process completed. A reboot is recommended."
+ echo "Migration process completed. A reboot is recommended."
+fi
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/opensuse-migration-tool-20251029.ed0d12d/scripts/10_keepapparmor.sh
new/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepapparmor.sh
--- old/opensuse-migration-tool-20251029.ed0d12d/scripts/10_keepapparmor.sh
2025-10-29 21:29:32.000000000 +0100
+++ new/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepapparmor.sh
2026-01-06 19:15:41.000000000 +0100
@@ -6,6 +6,23 @@
set -euo pipefail
+# Elevated permissions check unless DRYRUN is set
+if [ -z "${DRYRUN:-}" ]; then
+ if [ "$EUID" -ne 0 ]; then
+ exec sudo "$0" "$@"
+ fi
+ # Requires elevated permissions or test will always fail
+ 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"
}
@@ -17,7 +34,7 @@
# Check if we have security=apparmor as boot param
if [[ "${1:-}" == "--check" ]]; then
- if ! /usr/sbin/update-bootloader --get-option security | grep apparmor
&>/dev/null; then
+ if ! $UPDATE_BOOTLOADER --get-option security | grep apparmor &>/dev/null;
then
exit 0
else
exit 1
@@ -25,11 +42,11 @@
fi
log "Drop any SELinux boot options"
-sudo update-bootloader --del-option "security=selinux"
-sudo update-bootloader --del-option "enforcing=1"
-sudo update-bootloader --del-option "selinux=1"
+$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"
-sudo update-bootloader --add-option "security=apparmor"
+$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."
@@ -37,7 +54,7 @@
else
log "Installing packages: patterns-base-apparmor"
- if sudo zypper --non-interactive install --force-resolution
patterns-base-apparmor; then
+ 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."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/opensuse-migration-tool-20251029.ed0d12d/scripts/10_keepselinux.sh
new/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepselinux.sh
--- old/opensuse-migration-tool-20251029.ed0d12d/scripts/10_keepselinux.sh
2025-10-29 21:29:32.000000000 +0100
+++ new/opensuse-migration-tool-20260106.d2cfd39/scripts/10_keepselinux.sh
2026-01-06 19:15:41.000000000 +0100
@@ -7,6 +7,22 @@
set -euo pipefail
+# Elevated permissions check unless DRYRUN is set
+if [ -z "${DRYRUN:-}" ]; then
+ if [ "$EUID" -ne 0 ]; then
+ exec sudo "$0" "$@"
+ fi
+ # Requires elevated permissions or test will always fail
+ 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"
}
@@ -18,7 +34,7 @@
# Check if we have security=selinux as boot param
if [[ "${1:-}" == "--check" ]]; then
- if ! /usr/sbin/update-bootloader --get-option security | grep selinux
&>/dev/null; then
+ if ! $UPDATE_BOOTLOADER --get-option security | grep selinux &>/dev/null;
then
exit 0
else
exit 1
@@ -26,23 +42,23 @@
fi
log "Drop AppArmor boot options"
-sudo update-bootloader --del-option "security=apparmor"
+$DRYRUN update-bootloader --del-option "security=apparmor"
log "Add any SELinux boot options"
-sudo update-bootloader --add-option "security=selinux"
-sudo update-bootloader --add-option "enforcing=1"
-sudo update-bootloader --add-option "selinux=1"
+$DRYRUN update-bootloader --add-option "security=selinux"
+$DRYRUN update-bootloader --add-option "enforcing=1"
+$DRYRUN update-bootloader --add-option "selinux=1"
if rpm -q patterns-base-apparmor &>/dev/null; then
log "Uninstalling packages: patterns-base-apparmor"
- if sudo zypper --non-interactive remove --force-resolution
patterns-base-apparmor; then
+ if $DRYRUN zypper --non-interactive remove --force-resolution
patterns-base-apparmor; then
log "Uninstallation of AppArmor completed successfully."
else
error_exit "Package uninstallation failed. Please check zypper logs or
try again manually."
fi
-
-else
- log "Installing packages: patterns-selinux selinux-policy-targeted-gaming"
- sudo zypper --non-interactive install -t pattern --force-resolution selinux
- sudo zypper --non-interactive install selinux-policy-targeted-gaming
fi
+# user said he wants SElinux, so install SElinux pattern
+log "Installing packages: patterns-selinux selinux-policy-targeted-gaming"
+$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
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/opensuse-migration-tool-20251029.ed0d12d/scripts/20_ia32.sh
new/opensuse-migration-tool-20260106.d2cfd39/scripts/20_ia32.sh
--- old/opensuse-migration-tool-20251029.ed0d12d/scripts/20_ia32.sh
2025-10-29 21:29:32.000000000 +0100
+++ new/opensuse-migration-tool-20260106.d2cfd39/scripts/20_ia32.sh
2026-01-06 19:15:41.000000000 +0100
@@ -5,6 +5,15 @@
set -euo pipefail
+# Elevated permissions check unless DRYRUN is set
+if [ -z "${DRYRUN:-}" ]; then
+ if [ "$EUID" -ne 0 ]; then
+ exec sudo "$0" "$@"
+ fi
+ # Requires elevated permissions or test will always fail
+ test -w / || { echo "Please run the tool inside 'transactional-update
shell' on Immutable systems."; exit 1; }
+fi
+
log() {
echo "[MIGRATION] $1"
}
@@ -24,7 +33,7 @@
fi
log "Installing packages: grub2-compat-ia32"
-if sudo zypper --non-interactive install --force-resolution grub2-compat-ia32;
then
+if $DRYRUN zypper --non-interactive install --force-resolution
grub2-compat-ia32; then
log "Installation completed successfully."
else
error_exit "Package installation failed. Please check zypper logs or try
again manually."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/opensuse-migration-tool-20251029.ed0d12d/scripts/20_pulse2pipewire.sh
new/opensuse-migration-tool-20260106.d2cfd39/scripts/20_pulse2pipewire.sh
--- old/opensuse-migration-tool-20251029.ed0d12d/scripts/20_pulse2pipewire.sh
2025-10-29 21:29:32.000000000 +0100
+++ new/opensuse-migration-tool-20260106.d2cfd39/scripts/20_pulse2pipewire.sh
2026-01-06 19:15:41.000000000 +0100
@@ -6,6 +6,15 @@
set -euo pipefail
+# Elevated permissions check unless DRYRUN is set
+if [ -z "${DRYRUN:-}" ]; then
+ if [ "$EUID" -ne 0 ]; then
+ exec sudo "$0" "$@"
+ fi
+ # Requires elevated permissions or test will always fail
+ test -w / || { echo "Please run the tool inside 'transactional-update
shell' on Immutable systems."; exit 1; }
+fi
+
log() {
echo "[MIGRATION] $1"
}
@@ -39,7 +48,7 @@
fi
log "Installing packages: pipewire-pulseaudio and ensure
wireplumber-video-only-profile is removed"
-if sudo zypper --non-interactive install --force-resolution
pipewire-pulseaudio -wireplumber-video-only-profile; then
+if $DRYRUN zypper --non-interactive install --force-resolution
pipewire-pulseaudio -wireplumber-video-only-profile; then
log "Migration completed successfully."
else
error_exit "Package installation failed. Please check zypper logs or try
again manually."
++++++ opensuse-migration-tool.obsinfo ++++++
--- /var/tmp/diff_new_pack.a70Uaw/_old 2026-01-09 17:04:54.643520626 +0100
+++ /var/tmp/diff_new_pack.a70Uaw/_new 2026-01-09 17:04:54.695522788 +0100
@@ -1,5 +1,5 @@
name: opensuse-migration-tool
-version: 20251029.ed0d12d
-mtime: 1761769772
-commit: ed0d12d53c7eeab780c8c81b18a469d18c4a59df
+version: 20260106.d2cfd39
+mtime: 1767723341
+commit: d2cfd39fd633a3108d9dc7737752922b04181f6d