by Koshkin · 6y ago · 0 comments
When I was younger I was very happy to deal with these issues because I learned a lot and probably made me the professional I am nowadays. Over time however I realized much of this knowledge doesn't contribute to my day-to-day work anymore and it's just an annoyance - I now want to turn on my laptop and work right away.
After trying several distributions. I ended up long-term moving to Arch, it's way more work to setup but it has more of a I built it, I can fix it vibe. I always struggled to fix previous distributions after some update blowing something up.
In my opinion, the biggest thing Mac and Windows has going on is how stable they are.
There's a use case for both distros, but I can rely on RHEL / Centos more.
Then off to the command line to try to make it work.
And I think the way Linux was built, (ok this will sound naive but) focusing on the "command line" first makes everything second class.
Maybe every cmdline app should also include a binary api to be able to be used in an automated fashion (yes, you can call "system" but that is finicky)
I've banned this one for now but if you email hn@ycombinator.com with a better username we'll be happy to change it for you and unban the account.
The UEFI boot entries can be configured by the operating system with the "efibootmgr" command (http://manpages.ubuntu.com/manpages/bionic/man8/efibootmgr.8...) so if a more user-friendly version of it is required then a GUI can be written around that. Whether it's necessary or not is another matter because as far as I know there is no GUI around the GRUB configuration either and it mostly works.
Speaking of GRUB, how it works in Ubuntu land is that there are a couple of scripts that read different configuration files to generate the final GRUB configuration file which is actually a bash-like script (yes, GRUB implements a scripting language) and if you look at it you'd be horrified. The UEFI way of doing things is much simpler.
So the idea would be to 1) check whether the installer is booted in UEFI or BIOS, if UEFI then check if an existing OS is installed and whether it boots in BIOS or UEFI mode (whether the drive is partitioned in MBR or GPT), and then decide whether to skip GRUB (for UEFI-capable configurations) or keep it (for BIOS systems).
systemd-boot only supports UEFI systems, so GRUB would still have to be an option for legacy systems.
Check out the Arch Wiki page: https://wiki.archlinux.org/index.php/systemd-boot