installer uses first EFI system partition found even when directed otherwise
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub-efi-amd64-signed (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
Jammy |
Confirmed
|
Undecided
|
Unassigned | ||
ubiquity (Ubuntu) |
Confirmed
|
Medium
|
Unassigned | ||
Jammy |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
(k)ubuntu 14.04.1
package version: 2.02~beta2-9ubuntu1
i installed ubuntu on my external hard disk, where i also have a previously installed fedora system. i also have a windows
(efi-booted) system in the internal hard disk.
at install time via ubiquity i get all grub configuration files in the first EFI-labelled partition (i.e. /dev/sda2 in my case) instead of the one i selected (/dev/sdb1).
later i changed my fstab mounting /boot/efi on /dev/sdb1 and tried to reinstall grub package (apt-get install --reinstall grub-efi-amd64); now all grub configuration files are in the rigt place, but booting from the external hard disk still shows the fedora grub installation, while selectin the internal hard disk from the bios menu shows a submenu listing ubuntu and windows.
explicitly installing grub in the correct disk (grub-install /dev/sdb; grub-mkconfig -o /boot/efi/
expected results: grub shoud have been installed in the disk/partition i chose;
actual results: ubuntu always chooses the first disk to install grub on.
Note that this is not just about the dummy grub install location selector that is not used in EFI mode, but configuring one partition as do not use, and the other as ESP in the manual partitioning screen.
Related branches
- Łukasz Zemczak (community): Needs Fixing (packaging)
- git-ubuntu import: Pending requested
-
Diff: 28 lines (+9/-0)2 files modifieddebian/changelog (+8/-0)
ubiquity/plugins/ubi-partman.py (+1/-0)
Changed in grub2 (Ubuntu): | |
status: | Invalid → Triaged |
importance: | Undecided → Medium |
affects: | grub2 (Ubuntu) → ubiquity (Ubuntu) |
summary: |
- grub2 does not install in the correct partition on efi system + installer uses first EFI system partition found even when directed + otherwise |
description: | updated |
tags: | added: bionic |
tags: | added: disco eoan rls-ee-incoming xenial |
Changed in ubiquity (Ubuntu): | |
importance: | Medium → High |
tags: |
added: rls-ee-notfixing removed: rls-ee-incoming |
tags: | added: focal |
tags: | added: groovy |
tags: | added: desktop-lts-wishlist |
Changed in grub-efi-amd64-signed (Ubuntu): | |
status: | New → Confirmed |
tags: | added: rls-ll-incoming |
tags: | added: iso-testing |
tags: | added: kinetic |
Changed in ubiquity (Ubuntu): | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
assignee: | Łukasz Zemczak (sil2100) → Julian Andres Klode (juliank) |
Changed in ubiquity (Ubuntu Jammy): | |
milestone: | none → ubuntu-22.04.2 |
tags: | removed: rls-ll-incoming |
Changed in ubiquity (Ubuntu): | |
assignee: | Julian Andres Klode (juliank) → nobody |
Changed in ubiquity (Ubuntu): | |
status: | Triaged → In Progress |
status: | In Progress → Confirmed |
Changed in ubiquity (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | High → Medium |
Changed in ubiquity (Ubuntu): | |
status: | Triaged → Fix Released |
Grub gets installed to whatever you have mounted in /boot/efi as you noted. If you want to specify a particular partition to be mounted there then you should do so during installation. For it to work however, that partition must actually be an EFI type partition, not just an arbitrary data partition.