Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package grub2-compat-ia32 for
openSUSE:Factory checked in at 2025-06-24 20:48:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/grub2-compat-ia32 (Old)
and /work/SRC/openSUSE:Factory/.grub2-compat-ia32.new.7067 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "grub2-compat-ia32"
Tue Jun 24 20:48:32 2025 rev:2 rq:1288183 version:1
Changes:
--------
--- /work/SRC/openSUSE:Factory/grub2-compat-ia32/grub2-compat-ia32.changes
2025-06-18 19:42:02.903631354 +0200
+++
/work/SRC/openSUSE:Factory/.grub2-compat-ia32.new.7067/grub2-compat-ia32.changes
2025-06-24 20:50:11.198860234 +0200
@@ -1,0 +2,10 @@
+Tue Jun 24 08:12:40 UTC 2025 - Lubos Kocman <[email protected]>
+
+- Drop Requires on grub2 since we no longer call it directly
+
+-------------------------------------------------------------------
+Mon Jun 23 20:43:37 UTC 2025 - Lubos Kocman <[email protected]>
+
+- Drop 05_ia32_emulation in favor of update-bootloader
+
+-------------------------------------------------------------------
Old:
----
05_ia32_emulation
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ grub2-compat-ia32.spec ++++++
--- /var/tmp/diff_new_pack.A9xp83/_old 2025-06-24 20:50:11.878888063 +0200
+++ /var/tmp/diff_new_pack.A9xp83/_new 2025-06-24 20:50:11.894888718 +0200
@@ -12,6 +12,10 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
+
+
Name: grub2-compat-ia32
Version: 1
Release: 0
@@ -19,10 +23,8 @@
License: MIT
URL:
https://en.opensuse.org/GRUB#Enabling_32bit_x86_support_in_Kernel
Source1: README.md
-Source2: 05_ia32_emulation
-BuildRequires: grub2
-Requires: grub2
Requires: glibc-32bit
+Requires: update-bootloader
BuildArch: noarch
ExclusiveArch: x86_64
@@ -32,21 +34,25 @@
This package enables IA32 support by appending `ia32_emulation=1` to the
kernel parameters via GRUB.
%prep
+cp -a %{SOURCE1} .
%build
-cp -a %{SOURCE1} .
%install
-install -D -m 0755 %{SOURCE2}
%{buildroot}%{_sysconfdir}/grub.d/05_ia32_emulation
+# Nothing to do
%files
%doc README.md
-%config(noreplace) %{_sysconfdir}/grub.d/05_ia32_emulation
%post
-# Update GRUB config after installing the script
-if [ -x %{_sbindir}/grub2-mkconfig ]; then
- %{_sbindir}/grub2-mkconfig -o /boot/grub2/grub.cfg || :
+if ! %{_sbindir}/update-bootloader --get-option "ia32_emulation=1"
&>/dev/null; then
+ %{_sbindir}/update-bootloader --add-option "ia32_emulation=1" || :
fi
-echo "Please reboot the machine to apply IA32 emulation settings."
+%{_sbindir}/update-bootloader --config || :
+echo "IA32 emulation has been enabled. Please reboot to apply changes."
+
+%postun
+%{_sbindir}/update-bootloader --del-option "ia32_emulation=1" || :
+%{_sbindir}/update-bootloader --config || :
+echo "IA32 emulation has been removed. Please reboot to apply changes."
++++++ README.md ++++++
--- /var/tmp/diff_new_pack.A9xp83/_old 2025-06-24 20:50:11.942890683 +0200
+++ /var/tmp/diff_new_pack.A9xp83/_new 2025-06-24 20:50:11.946890847 +0200
@@ -9,16 +9,15 @@
## What This Package Does
-This package installs a custom GRUB script:
-
-`/etc/grub.d/05_ia32_emulation`
+This package adds the following kernel parameter:
+`ia32_emulation=1`
-This script appends the following kernel parameter:
+This is done via:
-`ia32_emulation=1`
+/usr/sbin/update-bootloader --add-option "ia32_emulation=1"
-Enabling this option restores support for executing 32-bit x86 binaries.
+Enabling this option restores compatibility with 32-bit x86 user-space
binaries.
## Without This Package
@@ -41,9 +40,8 @@
sudo zypper in grub2-compat-ia32
```
-After installation, make sure to update your GRUB configuration and reboot:
+After installation, make sure to reboot:
```bash
-sudo grub2-mkconfig -o /boot/grub2/grub.cfg
sudo reboot
```