[Bug 1879558] Re: grub-efi-amd64 postinst fails to install GRUB if previous GRUB install is not detected

2024-06-18 Thread Daniel Richard G.
> You can just run grub-install once by hand, and it will all update
correctly afterwards.

The package already has a good debconf-driven install process for GRUB
---requiring the user to do it manually not only discards the benefit of
that, it's a delicate and error-prone operation that most users are not
accustomed to doing (hence wrapping it in debconf).

The core of the problem is the chicken-and-egg scenario of requiring
GRUB to be installed in order to install GRUB. I just want to do e.g.
"dpkg-reconfigure grub-efi-amd64" on a newborn system, and have the
instalL_devices question come up. Right now, in order to get that, I
have to fool the postinst script by running "touch
/boot/grub/x86_64-efi/core.efi" beforehand. That's not a reasonable UI.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879558

Title:
  grub-efi-amd64 postinst fails to install GRUB if previous GRUB install
  is not detected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1879558/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1879558] Re: grub-efi-amd64 postinst fails to install GRUB if previous GRUB install is not detected

2024-06-17 Thread Mate Kukri
This is so that,
- a specific grub package is installed
- a specific grub target is used to boot
are separate states.

Then the installer can decide which grub(s) to install, and those will
be-reinstalled on package updates.

I believe this is by design. You can just run grub-install once by hand,
and it will all update correctly afterwards.

** Changed in: grub2 (Ubuntu)
   Status: New => Opinion

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1879558

Title:
  grub-efi-amd64 postinst fails to install GRUB if previous GRUB install
  is not detected

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1879558/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs