File opensuse-migration-tool-fix_paths.patch of Package opensuse-migration-tool

diff -Pdpru opensuse-migration-tool-20251001.d4b9783.orig/scripts/10_keepapparmor.sh opensuse-migration-tool-20251001.d4b9783/scripts/10_keepapparmor.sh
--- opensuse-migration-tool-20251001.d4b9783.orig/scripts/10_keepapparmor.sh	2025-10-03 12:21:04.945840178 +0200
+++ opensuse-migration-tool-20251001.d4b9783/scripts/10_keepapparmor.sh	2025-10-03 12:21:32.428882529 +0200
@@ -17,7 +17,7 @@ error_exit() {
 
 # 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 ! sudo update-bootloader --get-option security | grep apparmor &>/dev/null; then
         exit 0
     else
         exit 1
diff -Pdpru opensuse-migration-tool-20251001.d4b9783.orig/scripts/10_keepselinux.sh opensuse-migration-tool-20251001.d4b9783/scripts/10_keepselinux.sh
--- opensuse-migration-tool-20251001.d4b9783.orig/scripts/10_keepselinux.sh	2025-10-03 12:21:04.945840178 +0200
+++ opensuse-migration-tool-20251001.d4b9783/scripts/10_keepselinux.sh	2025-10-03 12:21:39.636631374 +0200
@@ -18,7 +18,7 @@ error_exit() {
 
 # 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 ! sudo update-bootloader --get-option security | grep selinux &>/dev/null; then
         exit 0
     else
         exit 1
openSUSE Build Service is sponsored by