[Bug 1568050] Re: grub-install removes other EFI boot entries

2017-12-06 Thread Chad Miller
I agree this shouldn't be Wishlist. I mentioned one other thing that
would be nice to have when fixing an enormous error, and that was a
mistake.

grub-install un-installs things. That's a big bug.

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

Title:
  grub-install removes other EFI boot entries

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

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

[Bug 1568050] Re: grub-install removes other EFI boot entries

2017-12-06 Thread Valentijn Sessink
The bug is somewhat worse than in the original report: grub-install will
remove anything that has "Ubuntu" (case INsensitive!) in it's name. In a
test, both "RAID Ubuntu /dev/sdc", "Ubuntu /dev/sdc" were removed by
grub-install. A label "RAID fallback /dev/sdc" would survive a call to
grub-install.

I'm not sure this is just a wishlist item. I can understand that grub-
install removes any item named "ubuntu" (case sensitive) because it
creates these. But why remove .*ubuntu.*/i ?

I agree with comment #4 that this is beyond most users.

Regarding comment #3: a sysadmin might want "ubuntu WDC_WD20EFRX-
68EUZN0_WD-WCC4M6HVCKR8", but for a regular user "ubuntu" may just be
fine. And having the disk ID automatically (i.e. by grub-install) added
to the menu means that it will also be automatically removed - adding to
complexity and to unintended side effects.

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

Title:
  grub-install removes other EFI boot entries

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

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

[Bug 1568050] Re: grub-install removes other EFI boot entries

2016-07-25 Thread Chad Miller
cyphermox, as for your complaint about grubx64.efi, I don't understand
it and I don't think I ever typed that anywhere, so it must have come
from grub. My "grub-install" just passes through things like that in
"$@".

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

Title:
  grub-install removes other EFI boot entries

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

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


[Bug 1568050] Re: grub-install removes other EFI boot entries

2016-07-25 Thread Chad Miller
> AIUI you can have the same label as many times as you want

FWIW, my practical attempts say the same name can be used any number of
times on some computers.

I don't like the same name, though. I don't think every boot should be a
mystery about which I'm picking. It's not like the EFI menu has any
smarts that lets me investigate before it goes. It might matter in ways
that have nothing to do with redundancy of booting the same machine
instance.

For an attempt at brevity and sanity, can we make the "ubuntu" label
have appended " on $udevserialpart" IFF there is more than one disk? On
install, perhaps mutate all entries starting with "ubuntu" or "ubuntu on
".

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

Title:
  grub-install removes other EFI boot entries

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

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


[Bug 1568050] Re: grub-install removes other EFI boot entries

2016-07-25 Thread Mathieu Trudel-Lapierre
In theory this is fine, but in practice will need more work.

For instance, in your examples grubx64.efi is being installed as the EFI
binary to run -- this is wrong, since grubx64.efi is only signed by the
Canonical keys, not by Microsoft keys, and so will fail to boot in a
Secure Boot scenario.

I think we'll also need to rework the naming -- "ubuntu", although being
perhaps too brief, has the benefit of being obvious (moreover, AIUI you
can have the same label as many times as you want). It would be better
to make sure update-grub and grub-install can correctly see the RAID
case as it is, and DTRT; such as installing to all members of the array,
adding the right modules to config (and in a Secure Boot scenario you'll
also need to have the modules included in the shipped grub EFI images).

Marking Triaged / Wishlist; I'll see with other people how to prioritize
this work.

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

** Changed in: grub2 (Ubuntu)
   Importance: Undecided => Wishlist

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

Title:
  grub-install removes other EFI boot entries

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

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


[Bug 1568050] Re: grub-install removes other EFI boot entries

2016-04-08 Thread Chad Miller
My suggestion for a change is that the device id is used to construct a
more complex bootloader id.

$ sudo efibootmgr
BootCurrent: 
Timeout: 5 seconds
BootOrder: 0002,0001,
Boot* ubuntu via WDC_WD20EFRX-68EUZN0_WD-WCC4M6HVCKR8
Boot0001* ubuntu via WDC_WD20EFRX-68EUZN0_WD-WCC4M6PP1ZJK
Boot0002* ubuntu via ST31000528AS_5VP8B3JE

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

Title:
  grub-install removes other EFI boot entries

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

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


[Bug 1568050] Re: grub-install removes other EFI boot entries

2016-04-08 Thread Chad Miller
I just wrote this to do what I want it to do. I suspect this is beyond
most users.

I don't think this should be part of the package, but I think what it
does is a good idea. Include the device name and serial number in the
EFI boot description. "ubuntu" was never enough anyway.

** Attachment added: "/usr/local/bin/grub-install"
   
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1568050/+attachment/4629342/+files/grub-install

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

Title:
  grub-install removes other EFI boot entries

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

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


[Bug 1568050] Re: grub-install removes other EFI boot entries

2016-04-08 Thread Chad Miller
There is a "--bootloader-id=" argument to grub-install that lets you
choose a different name and only remove other entries with that new
name. So, if you're careful, you can choose unique names for each and
get other entries.

It's wrong and weird to remove anything by running "install" though. It
might even be okay to make the most recently "grub-install"ed device the
first, preferred device in the boot order, but it's not okay to remove
others.

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

Title:
  grub-install removes other EFI boot entries

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

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