There’s a prominent post at Ars Technica called Linux on laptops: Ubuntu 19.10 on the HP Dragonfly Elite G1 that implies that it is easy and straightforward to install Ubuntu on the HP Dragonfly Elite laptop. The post is correct that releases later than 19.10 have full kernel support for nearly all of the laptop’s hardware, but there are some very important caveats to the install.
You can leave secure boot enabled, but pay attention to the Ars Technica post. When “Press any key to perform MOK management”, you should enter that. As the Ars Technica post puts it: From here, you’ve got to select “Enroll MOK” from an equally bare-bones menu, offering that choice along with “Continue boot,” “Enroll key from disk,” and “Enroll hash from disk.” This brings you to “View key 0” or “Continue,” from which you should pick “Continue.” Then it’s “Yes” from no or yes, and finally you’re presented with a “Password:” prompt, at which you type in the password you created when opting to configure Secure Boot back at the Ubuntu installer.
I would recommend disabling fast boot and adding a 5 second delay to your boot sequence for ease of accessing BIOS etc.
OK, but there’s a massive catch that nobody has mentioned anywhere. If you try this install with Intel Optane enabled, your install will die hard. Ubuntu will not come up as a menu option in the UEFI list. To fix this, you need to go into the BIOS and manage third-party ROM stuff (F3). Once you have disabled Intel Optane, you can proceed with the Ubuntu installation.
If you installed Ubuntu before disabling Optane you should be able just to reinstall after doing so and you’ll be up and running. If, like me, however, you had gone in and messed about with UEFI files in order to “fix” your install, you may have a totally unbootable laptop. Indeed, I actually had a situation where the laptop was unbootable and the recovery partition wouldn’t launch either. Argh! The solution to this is both simple and quite a pain. I used a Satechi USB-C adapter to add an ethernet port to the laptop and then pressed F11 at boot. From there, I selected “Recover from Network”. Remarkably, this worked! The laptop booted from HP’s remote recovery image, over the internet, and totally restored itself. Admittedly, it did mess one thing up: I no longer have Word and the bundled software. Also, the installer never “completed” – it just say there eventually saying “We are recovering your PC” or whatever with all the boxes greyed out. After an hour, though, I just powered down, rebooted, and all was fine.
So, this is basically to say: the one thing that nobody told me for the install was disable Optane. I cannot stress this enough: DISABLE OPTANE. And your life will be so much easier. Hopefully point 4 above will help any unfortunate soul who ended up in the same boat as me.