I have an SSD (Samsung MZVL....) and an HDD (WDC WD10S.....) on my computer (Lenovo ideapad). Mostly, I use Windows, which is installed on the SSD, but sometimes I need Ubuntu too. My scheme until recently was, the computer boots by default to to SSD and Windows starts up seamlessly. If I need to run Ubuntu, I press F12 repeatedly and select the HDD from the boot source menu.
Recently, I updated to Ubuntu 22.04.1 from my existing 20.04 and somehow it installed its bootloader on the SSD and Grub shows up every time I start my computer. This is particularly annoying for me, because I use Windows for almost 95% of the time. I know I can always set the priority of Windows over Ubuntu in the Grub order, but I want my Windows to be untouched in my primary disk (SSD) and not Grub booting it for me.
I removed Ubuntu using a combination of OS Uninstaller and efibootmgr, and tried to install it again (downloaded from here) while trying it not to touch my SSD. The images 1 and 2 show the settings I selected while installing Ubuntu. Image 3 shows the result, with Ubuntu still sticking itself to the SSD.
How can I install Ubuntu in such a way that it has its bootloader on the HDD, not the SSD?