Grub removes EFI entries on update

Bug #1290960 reported by Nazar Mokrynskyi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have custom EFI entry, but I need to add it back after every Grub update, because Grub removes all existing entries, and adds new ones (sometimes twice).
Please, fix this annoying issue, I'm tired to restore entries every time.

Looks like issue similar to http://lists.alioth.debian.org/pipermail/pkg-grub-devel/2013-May/013508.html

affects: unity8 (Ubuntu) → grub2 (Ubuntu)
Revision history for this message
Phillip Susi (psusi) wrote :

As it says at the top of grub.cfg, you are not meant to edit it directly. Add custom entries to /etc/grub.d/40_custom.

Changed in grub2 (Ubuntu):
status: New → Invalid
Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

I didn't edit grub.cfg!!!
I've edited EFI entry with efibootmgr.

Changed in grub2 (Ubuntu):
status: Invalid → New
Revision history for this message
Phillip Susi (psusi) wrote :

Please be more specific about what this entry looks like and how you added it. Perhaps show the output of efibootmgr just before and after upgrading or reinstalling grub-efi.

Changed in grub2 (Ubuntu):
status: New → Incomplete
Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

nazar-pc@nazar-pc:~$ sudo efibootmgr -v
[sudo] password for nazar-pc:
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0001
Boot0001* ubuntu HD(2,6618000,64000,a0c38a24-0cae-44ce-979d-3ce5d302c72a)File(\EFI\Ubuntu\grubx64.efi)
Boot0002* Ubuntu (EFI stub) HD(2,6618000,64000,a0c38a24-0cae-44ce-979d-3ce5d302c72a)File(\EFI\ubuntu_efi_stub\bootx64.efi)r.o.o.t.=.U.U.I.D.=.5.9.4.3.0.d.1.7.-.e.4.9.1.-.4.f.6.f.-.a.b.9.a.-.8.2.c.9.2.8.8.9.3.1.7.c. .r.o. .q.u.i.e.t. .s.p.l.a.s.h. .i.n.i.t.r.d.=./.e.f.i./.u.b.u.n.t.u._.e.f.i._.s.t.u.b./.i.n.i.t.r.d...i.m.g...
nazar-pc@nazar-pc:~$ sudo apt-get install --reinstall grub-e
grub-efi grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-dbg grub-efi-amd64-signed grub-efi-ia32 grub-efi-ia32-bin grub-efi-ia32-dbg grub-emu grub-emu-dbg
nazar-pc@nazar-pc:~$ sudo apt-get install --reinstall grub-efi-amd64
Зчитування переліків пакунків... Виконано
Побудова дерева залежностей
Зчитування інформації про стан... Виконано
оновлено 0, встановлено 0 нових, 1 перевстановлено, 0 відмічено для видалення і 1 не оновлено.
Необхідно завантажити 0 B/44,7 kB архівів.
Після цієї операції об'єм зайнятого дискового простору зросте на 0 B.
Передналаштування пакунків...
(Читання бази даних ... на дану мить встановлено 159230 файлів та каталогів.)
Preparing to unpack .../grub-efi-amd64_2.02~beta2-7_amd64.deb ...
Unpacking grub-efi-amd64 (2.02~beta2-7) over (2.02~beta2-7) ...
Налаштовування grub-efi-amd64 (2.02~beta2-7) ...
Встановлюємо для платформи x86_64-efi.
Встановлення завершено. Помилок не виявлено.
Створюємо файл налаштувань grub...
Виявлено образ linux: /boot/vmlinuz-3.14.0-rc6-haswell
Виявлено образ initrd: /boot/initrd.img-3.14.0-rc6-haswell
Виявлено образ linux: /boot/vmlinuz-3.14.0-rc5-haswell
Виявлено образ initrd: /boot/initrd.img-3.14.0-rc5-haswell
Adding boot menu entry for EFI firmware configuration
виконано
nazar-pc@nazar-pc:~$ sudo efibootmgr -v
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0000,0002
Boot0000* ubuntu HD(2,6618000,64000,a0c38a24-0cae-44ce-979d-3ce5d302c72a)File(\EFI\ubuntu\grubx64.efi)
nazar-pc@nazar-pc:~$ sudo efibootmgr -c -L "Ubuntu (EFI stub)" -l "\EFI\ubuntu_efi_stub\bootx64.efi" -d /dev/sda -p 2 -u "root=UUID=59430d17-e491-4f6f-ab9a-82c92889317c ro quiet splash initrd=/efi/ubuntu_efi_stub/initrd.img"
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0001,0000,0002
Boot0000* ubuntu
Boot0001* Ubuntu (EFI stub)

Revision history for this message
Phillip Susi (psusi) wrote :

Thank you, that shows the problem clearly.

Changed in grub2 (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

Is it that difficult to fix?
I'm tired to restore records after each update.

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

Just add check whether ubuntu is already present in list or remove this action completely if package is not just installed (ignore for upgrades).

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

Bug was confirmed a long time ago and still happens.

Revision history for this message
Nazar Mokrynskyi (nazar-pc) wrote :

A one year old confirmed bug, can you fix this before 15.04 release at least? This breaks many configurations with manually configured EFI entries

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.