[Bug 1396379] Re: installer uses first EFI system partition found even when directed otherwise
Ubiquity invokes the grub-installer bash script to perform the actual boot loader install stuff - it reads the the grub-installer/bootdev debconf value to know where to install the bootloader. There is some logic in there to find a default boot device which I suspect is how it's picking the first partition of the first drive in the machine, but I'm not very good at debugging shell scripts so I couldn't find a reason as to why it would be using that logic in the first place since grub-installer/bootdev is already set correctly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1396379 Title: installer uses first EFI system partition found even when directed otherwise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1396379] Re: installer uses first EFI system partition found even when directed otherwise
I finally got ubiquity running in a debugger and it looks like the previous code I mentioned is working fine. Ubiquity is correctly setting the grub-installer/bootdev debconf value. The bug may lie in the grub- installer program. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1396379 Title: installer uses first EFI system partition found even when directed otherwise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1396379] Re: installer uses first EFI system partition found even when directed otherwise
I believe the bug is in this function https://git.launchpad.net/ubuntu/+source/ubiquity/tree/ubiquity/plugins/ubi- partman.py?h=applied/ubuntu/impish#n797 (I may have selected the wrong branch here but the same code is present in the 21.10 live CD). I reported #1591352 when I was in high school and since then I have gotten a degree in CS and started a career in SE. Over the last 6-7 years I have periodically seen comments on this bug report and it's crazy it hasn't been fixed yet. In my debug log I submitted in 2016, it contains the line "No active iterator for grub device entry." which means it was unable to use the user's selected grub device entry. That function then goes on to select the current disk ID... and promptly bricks all of our systems. I tested with 21.10 in a VM and the same thing still happens. A GTK issue shouldn't brick our systems but here we are. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1396379 Title: installer uses first EFI system partition found even when directed otherwise To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1396379/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1591352] Re: Ubiquity copies efi boot information to wrong ESP
** Attachment removed: "Debug stuff" https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1591352/+attachment/4699835/+files/debug%20stuff.zip ** Attachment added: "debug stuff.zip" https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1591352/+attachment/4699836/+files/debug%20stuff.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1591352 Title: Ubiquity copies efi boot information to wrong ESP To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1591352/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1591352] Re: Ubiquity copies efi boot information to wrong ESP
I'm reattaching the debug stuff. I didn't realize it logged passwords.. I replaced them with asdfasdf. ** Attachment removed: "Ubiquity debug file, partman, and syslog" https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1591352/+attachment/4681249/+files/debug%20stuff.zip ** Attachment added: "Debug stuff" https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1591352/+attachment/4699835/+files/debug%20stuff.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1591352 Title: Ubiquity copies efi boot information to wrong ESP To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1591352/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1591352] [NEW] Ubiquity copies efi boot information to wrong ESP
Public bug reported: I'm installing Ubuntu 16.04 onto an external HDD. My computer also has an internal Windows 10 HDD. When at the partitioning stage, it selected for the boot loader to be installed onto the external HDD. When Uniquity is installing the system, it mounts Windows 10's ESP and copies the Ubuntu/grub boot loaders over, when it should have mounted the ESP created on the external HDD. I attached a screenshot of lsblk to show what's happening. /dev/sda2 is the Win10 ESP and it's mounted to /target/boot/efi. /dev/sdb1 is the correct ESP but is not touched. Because the boot information is not on the external HDD, the Windows 10 disk must be present to boot Ubuntu because the boot information pointing to Ubuntu is located on the Windows ESP. Ubiquity is version 2.21.63. I also attached the Ubiquity debug file, partman, and syslog. Sorry for putting them in a zip, can't attach more than 1 file. ** Affects: ubiquity (Ubuntu) Importance: Undecided Status: New ** Tags: boot efi esp ubiquity uefi ** Attachment added: "Ubiquity debug file, partman, and syslog" https://bugs.launchpad.net/bugs/1591352/+attachment/4681249/+files/debug%20stuff.zip -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1591352 Title: Ubiquity copies efi boot information to wrong ESP To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1591352/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs