[Bug 2089622] [NEW] grub2-tools-2.06-92.el9 forbidden overwrite the GRUB wrapper
QCU266
2089622 at bugs.launchpad.net
Tue Nov 26 01:47:07 UTC 2024
Public bug reported:
Recently, when I was deploying almalinux 9 using maas, I came across images that I could deploy previously. The following error is reported:
```text
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Traceback (most recent call last):
File "/curtin/curtin/commands/main.py", line 202, in main
ret = args.func(args)
^^^^^^^^^^^^^^^
File "/curtin/curtin/commands/curthooks.py", line 1918, in curthooks
builtin_curthooks(cfg, target, state)
File "/curtin/curtin/commands/curthooks.py", line 1883, in builtin_curthooks
setup_grub(cfg, target, osfamily=osfamily,
File "/curtin/curtin/commands/curthooks.py", line 821, in setup_grub
install_grub(instdevs, target, uefi=uefi_bootable, grubcfg=grubcfg)
File "/curtin/curtin/commands/install_grub.py", line 444, in install_grub
in_chroot.subp(cmd, env=env, capture=True)
File "/curtin/curtin/util.py", line 792, in subp
return subp(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/curtin/curtin/util.py", line 280, in subp
return _subp(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/curtin/curtin/util.py", line 144, in _subp
raise ProcessExecutionError(stdout=out, stderr=err,
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpndyymroj/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/rocky/grub.cfg']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Running `grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg' will overwrite the GRUB wrapper.
Please run `grub2-mkconfig -o /boot/grub2/grub.cfg' instead to update grub.cfg.
GRUB configuration file was not updated.
Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpndyymroj/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/rocky/grub.cfg']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Running `grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg' will overwrite the GRUB wrapper.
Please run `grub2-mkconfig -o /boot/grub2/grub.cfg' instead to update grub.cfg.
GRUB configuration file was not updated.
```
After investigation, it is found that grub2-tools-2.06 has been updated
recently from grub2-Tools-2.06-82.el9 to Grub2-Tools-2.06-92.el9, and
there is a patch that disables this operation
https://git.almalinux.org/rpms/grub2/commit/46e7ed602b5789406469d7dee2fcac09da484a81#diff-62df511bba4bac577412abf2c0c5322a46e1d77d
** Affects: curtin
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/2089622
Title:
grub2-tools-2.06-92.el9 forbidden overwrite the GRUB wrapper
Status in curtin:
New
Bug description:
Recently, when I was deploying almalinux 9 using maas, I came across images that I could deploy previously. The following error is reported:
```text
finish: cmd-install/stage-curthooks/builtin/cmd-curthooks: FAIL: curtin command curthooks
Traceback (most recent call last):
File "/curtin/curtin/commands/main.py", line 202, in main
ret = args.func(args)
^^^^^^^^^^^^^^^
File "/curtin/curtin/commands/curthooks.py", line 1918, in curthooks
builtin_curthooks(cfg, target, state)
File "/curtin/curtin/commands/curthooks.py", line 1883, in builtin_curthooks
setup_grub(cfg, target, osfamily=osfamily,
File "/curtin/curtin/commands/curthooks.py", line 821, in setup_grub
install_grub(instdevs, target, uefi=uefi_bootable, grubcfg=grubcfg)
File "/curtin/curtin/commands/install_grub.py", line 444, in install_grub
in_chroot.subp(cmd, env=env, capture=True)
File "/curtin/curtin/util.py", line 792, in subp
return subp(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/curtin/curtin/util.py", line 280, in subp
return _subp(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/curtin/curtin/util.py", line 144, in _subp
raise ProcessExecutionError(stdout=out, stderr=err,
curtin.util.ProcessExecutionError: Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpndyymroj/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/rocky/grub.cfg']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Running `grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg' will overwrite the GRUB wrapper.
Please run `grub2-mkconfig -o /boot/grub2/grub.cfg' instead to update grub.cfg.
GRUB configuration file was not updated.
Unexpected error while running command.
Command: ['unshare', '--fork', '--pid', '--', 'chroot', '/tmp/tmpndyymroj/target', 'grub2-mkconfig', '-o', '/boot/efi/EFI/rocky/grub.cfg']
Exit code: 1
Reason: -
Stdout: ''
Stderr: Running `grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg' will overwrite the GRUB wrapper.
Please run `grub2-mkconfig -o /boot/grub2/grub.cfg' instead to update grub.cfg.
GRUB configuration file was not updated.
```
After investigation, it is found that grub2-tools-2.06 has been
updated recently from grub2-Tools-2.06-82.el9 to
Grub2-Tools-2.06-92.el9, and there is a patch that disables this
operation
https://git.almalinux.org/rpms/grub2/commit/46e7ed602b5789406469d7dee2fcac09da484a81#diff-62df511bba4bac577412abf2c0c5322a46e1d77d
To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/2089622/+subscriptions
More information about the foundations-bugs
mailing list