Arch Linux Bricks Dual Boot With One Kernel Change
Key Takeaways
Arch Linux dual boot issue caused by a single line config change in the Linux 6.2 kernel update, affecting UEFI systems and requiring changes to the EFI Handover protocol and bootloader configurations
Full Transcript
I can certainly see the value in dual booting multiple operating systems but when it comes to dual booting multiple Linux distros I just don't really see the value add especially when one of those distros happens to be Arch Linux but I'm not here to say whether you should or shouldn't some people out there do and a certain configuration is causing this to happen when you try to boot into Arch Linux error kernel doesn't support EFI Handover error you need to load the kernel first if I press any key I'm redirected to Grub and what's Curious is this isn't just a dual boot issue it's also happening with single boots of Arch Linux using sys Linux as a UEFI bootloader yes you can do that no you shouldn't and considering how small both of these groups are it's no surprise that hardly anyone is talking about this but it is a really serious issue if you are having this issue you literally cannot boot into Arch however we do know exactly when and why this problem happened it all began with the update to the Linux 6.2 kernel and it all happened because of a single line config change and depending on how you want to frame it how nice you want to be to the arch team this may or may not be their fault more on that later but let's get into what the problem actually is so a few years back a feature of the kernel was marked as deprecated that feature being the EFI Handover protocol you might remember that from appearing inside the error message so the EFI Handover protocol was first added into the kernel all the way back in the Linux 3.6 update roughly a decade or so ago right now EFI bootloaders and the EFI boot stub in the Linux kernel carry the same initialization code to set up an EFI machine for booting the kernel however with this EFI Handover protocol support this redundant code could be eliminated Intel and others want to have the initialization and boosting of the kernel just within the Kernel's EFI boot stuff then also copied within the bootloader the Linux 3.6 kernel provides the Handover protocol support on the Kernel side but the EFI bootloaders need to be updated to support the EFI Handover protocol entry point when they do have this support the responsibility of EFI bootloaders come down to just loading the kernel image from the boot media and providing any user interface for boot menu options EG selecting different kernels so at the time it certainly seemed like a much better option but it also needed support from the bootload aside and this is where the problem happened this protocol has no basis in the UEFI specification and there are better ways to pass additional data to a UEFI application UEFI configuration tables UEFI variables ufi protocols then going around the site image boot service and jump into a fixed offset in the loaded image just to call a different function that takes a third parameter given that loaders such as grub already carry the boot param's handling in order to implement non-efi boot retaining that code and just passing boot params the EFI stub was a reasonable choice although defining an alternate entry point could have been avoided however the grub slide changes never made it Upstream in the meantime EFI support has been added to other Linux architecture ports as well as to you boot and systemd including architecture agnostic methods for passing a knit Rd images in memory and for doing mixed and for doing mixed boot mode none of them requiring anything like the EFI Handover protocol so since none of the projects that matter are using your upstream and it's already marked as deprecated let's also just make it optional now they can't just go on remove it because the kernels and like to generally break things that are in use and even though these patches aren't Upstream they are being shipped by some Downstream distros when they say some a lot of the major distros like Ubuntu open Susa things like that but if for whatever reason you do want to get rid of of it when compiling of the kernel all you need to do is change EFI Handover protocol from y to n by default support is going to be compiled in however the Arch Linux team decided to set it to no and they do have good reason for doing this from their perspective it makes complete sense the vanilla version of grub the version of grub they ship on their distro does not support EFI Handover protocol Arch Linux does not ship those patches so the theory is if Arch linux's bootloader doesn't make use of the EFI Handover protocol there is literally zero harm in removing it from the Arch Linux kernel and much like the Flat Earth that theory isn't exactly correct I already mentioned that distros like open Susa and Ubuntu ship these patches not only do they ship these patches because their kernels are always going to have the EFI Handover protocol enabled grub expects it to be enabled in the kernel it's receiving and if it's not like in the case of the Arch Linux kernel well people are going to report the bug on those distress as well this is a report over on tumbleweed and this is the same report over on Ubuntu grub relies on optional deprecated EFA Handover protocol and at least in the case of Ubuntu they have no plans to change anything this is expected yes and there isn't anything we can do about this for the foreseeable future this is not Ubuntu specific all big distros use the Handover protocol and also Enterprise distributions will likely have to continue to do so for the foreseeable future due to external obligations that I can't go into further detail about effect actively what has happened here is a soft Fork of grub has become the default version most of the districts out there are not shipping the grub that comes from the Upstream distro they are using these red hat patches this is why I said you can choose whether you want to blame Arch or not technically Arch is doing what Upstream expects to be done the issue is that no one else is so you either conform with upstream or you can form with the standard that other distros are doing how you want to look at that depends on where you want to place your blame now this is where the problem gets really cool the problem only happens in One Direction so if you're using the Ubuntu version of grub this expects EFI Handover protocol to be enabled so the Ubuntu kernel will boot just fine but the arch one won't the arch one doesn't have the protocol enabled but the same isn't true if you're using the arch version of grub the arch version does not expect to be enabled it doesn't even use it but it can still boot Ubuntu no problem whatsoever and can also boot Arch the exact same so the easiest and most permanent solution is stop using grub from distros that are not Arch if you're dual booting with Arch use the arch version of grub this is the vanilla version and it's gonna give you the better experience at least in this case now as for sys Linux please for the love of God do not use syslinux on a UEFI system better yet don't use CIS Linux the project is long dead and is having lots of issues with modern systems but if you do when I said there are no boot loaders that matter that use the EFI Handover protocol I meant that on purpose because CIS Linux does actually use it it just doesn't matter so now that uh now the arch kernel doesn't you you just can't boot UEFI systems using sys Linux with the arch kernel uh for the record CIS Linux is in the core repos I would fully support dropping this down into the Aur if it literally cannot be used with the mainline Arch kernels so the solution to that is the same solution from before stop doing that just use a normal bootloader use the version of grub from Arch Linux or use another bootloader but use the version from Arch Linux and also please if you report a bug that has to do with booting please just mention if you use CIS Linux this led to a giant thread with people trying to work out what the problem was doing get bisex and everyone just assumed this person was using grub they weren't um probably would have been better to mention which bootload you were using from the outset CIS Linux development hasn't been updated in years so it's no wonder there are issues when using it to boot Modern Hardware for your information sys Linux is considered basically dead by some folks I think by most folks but sure sums technically correct as well from what I've seen there's not really a discussion about what to do with the EFI Handover protocol one person here does give a pretty good answer though so this post here which is the optional enabling thing specifically suggests people should set this to why if in doubt doesn't seem like this will be removed anytime soon probably won't be considering how useful it is with uh some of the Enterprise systems no reason not to just have this enabled in the Arch Linux kernel configs this is breaking installs for no good reason right now and I I think that just sums it up well there's not really any benefit in getting rid of it but there is a pretty big drawback and that's for all of the people using bootloaders from distros that are not Arch so re-enabling it just seems like the easiest thing to do but let me know considering how small both these groups are dual booters using a bootloader from another distro and CIS Linux users do you think the arch team should even bother to go and change anything back maybe like you know 50 or 100 people are actually going to be affected I would love to know do you happen to use one of these systems maybe it's more people than I thought get a little bit better let me know your thoughts and down below I'm not going to cut that we're just going to leave that in there uh it's gonna be it for me if you like the video like the video If you really liked the video and you want to become one of these amazing people over here patreon scrub cell bear pay down below that's gonna be it for me and outro of some sort [Applause] [Music]
Original Description
If you happen to dual boot your with Arch Linux and don't use the bootloader from the Arch repos you may have noticed that Arch can no longer be booted into, this isn't a problem with your system this is a problem with the Arch kernel itself
==========Support The Channel==========
► $100 Linode Credit: https://brodierobertson.xyz/linode
► Patreon: https://brodierobertson.xyz/patreon
► Paypal: https://brodierobertson.xyz/paypal
► Liberapay: https://brodierobertson.xyz/liberapay
► Amazon USA: https://brodierobertson.xyz/amazonusa
==========Resources==========
Arch Linux Forum Post: https://bbs.archlinux.org/viewtopic.php?id=283929
Kernel 3.6: https://www.phoronix.com/news/MTE0NzU
EFI Handover Protocol Deprecated: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/Kconfig?h=v6.2&id=cc3fdda2876e58a7e83e558ab51853cf106afb6a
OpenSUS Tumbleweed Report: https://forums.opensuse.org/t/mutliboot-tumblweed-grub-doesnt-boot-arch-6-2-1-kernels-kernel-doesnt-support-efi-handover/164726/4
Ubuntu Report 1: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2009292
Ubuntu Report 2: https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/2009242
Syslinux Package: https://archlinux.org/packages/core/x86_64/syslinux/
Arch Linux Bug Report: https://bugs.archlinux.org/task/77632
=========Video Platforms==========
🎥 Odysee: https://brodierobertson.xyz/odysee
🎥 Podcast: https://techovertea.xyz/youtube
🎮 Gaming: https://brodierobertson.xyz/gaming
==========Social Media==========
🎤 Discord: https://brodierobertson.xyz/discord
🎤 Matrix Space: https://brodierobertson.xyz/matrix
🐦 Twitter: https://brodierobertson.xyz/twitter
🌐 Mastodon: https://brodierobertson.xyz/mastodon
🖥️ GitHub: https://brodierobertson.xyz/github
==========Credits==========
🎨 Channel Art:
Profile Picture:
https://www.instagram.com/supercozman_draws/
#Linux #ArchLinux #OpenSource #FOSS #LinuxDesktop
🎵 Ending music
Music from https://filmmusic.io
"Basic Implosion" by Ke
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Brodie Robertson · Brodie Robertson · 23 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
▶
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
This Linux Patch Removes Spectre & Meltdown Protections
Brodie Robertson
Linux's Most Degenerate Terminal Application
Brodie Robertson
You Can Buy Modern Linux Distros On A DVD??
Brodie Robertson
Bypass Paywalls Vanishes From Firefox Addon Store
Brodie Robertson
CoreJS: The Web & Open Source Are Broken!
Brodie Robertson
Begone GTK4, Long Live The New King GTK5
Brodie Robertson
Flathub Finally Adds Much Needed Flatpak Feature
Brodie Robertson
Google Should Be Worried About ChatGPT Bing
Brodie Robertson
How To Never Improve The Linux Wayland Experience
Brodie Robertson
Fedora Linux Unveils New 5 Year Roadmap
Brodie Robertson
Linux Desktop Randomly Stuttering? Here's Why #shorts
Brodie Robertson
Why We Need Even More Linux Distros!?!
Brodie Robertson
This Wayland Change Will Improve Linux Forever
Brodie Robertson
Ubuntu Linux Was Once Spyware Says EFF & Stallman
Brodie Robertson
Rise Of A New Kind Of Linux Package Manager
Brodie Robertson
Rolling Release Linux Distro Probably Isn't For You
Brodie Robertson
Ubuntu Flavors Put An End To Shipping Flatpak
Brodie Robertson
WINE Will Finally Run On Wayland NATIVELY!!
Brodie Robertson
No ZDNET, Linux 6.2 WILL NOT Run On M1 Macs
Brodie Robertson
Ubuntu Linux Announces New Kind Of Mini ISO??
Brodie Robertson
Fedora Linux Finally Kills Off Delta RPM
Brodie Robertson
Linus Torvalds Is Sick Of Useless Git Merges
Brodie Robertson
Arch Linux Bricks Dual Boot With One Kernel Change
Brodie Robertson
Linux AppImage Finally Addresses Greatest Flaw!!
Brodie Robertson
Refusing To Use Windows For "Religious Reasons"
Brodie Robertson
GNOME Shell & Mutter Finally Drop GTK3!!
Brodie Robertson
11 Documents Showing Microsoft Tried To Destroy Linux
Brodie Robertson
Manjaro Linux Is The Joke That Never Ends
Brodie Robertson
The New Ubuntu Linux "Flavor" We All Expected
Brodie Robertson
NEVER Write Git Commit Messages With ChatGPT
Brodie Robertson
Why GNOME? Why Didn't KDE Takeover Linux?!?
Brodie Robertson
Discord Tried To END This Reverse Engineered Server
Brodie Robertson
Mesa 23 Makes Linux Shader Stuttering A Thing Of The Past
Brodie Robertson
Linux Kernel Broke A Feature NOBODY Uses!
Brodie Robertson
Manjaro Broke Asahi Linux... AGAIN!!!
Brodie Robertson
Linux Hasn't Become Complicated & Limiting | Distrotube Reply
Brodie Robertson
Ubuntu Linux's Steam Snap Is Almost Stable
Brodie Robertson
Wayland Is Linux's Future, But Why Do I Care?
Brodie Robertson
John Deere Refuses To Respect Free Software & GPL
Brodie Robertson
Why BSD Documentation Is Just Better Than Linux
Brodie Robertson
KDE Fixes Discord On Wayland Because Discord Can't
Brodie Robertson
Xorg Foundation Has A Serious Problem
Brodie Robertson
Manjaro Linux's Biggest Drama That Never Happened
Brodie Robertson
I'm Leaving Arch Linux For A Better Distro!!
Brodie Robertson
Red Hat Linux Once Featured A REDNECK Translation
Brodie Robertson
Android Authority Doesn't Understand Linux or Android
Brodie Robertson
Switching To Wayland: Why I'm Daily Driving Hyprland
Brodie Robertson
Private Security Patching Is A Nightmare In Open Source
Brodie Robertson
Xorg Vs Wayland Is Just A Technical Detail
Brodie Robertson
Why Did Fedora Linux Drop Its Wacky Release Names?
Brodie Robertson
KDE App Theming On Other Desktops Is A Mess
Brodie Robertson
Xenocara: That X11 Server That Isn't Xorg
Brodie Robertson
PopOS New COSMIC Desktop Has Me Excited Again!
Brodie Robertson
Hilarious GNOME Archive Bug Finally Gets Addressed
Brodie Robertson
Rust Foundation Has A Serious Trademark Problem
Brodie Robertson
Top 5 Best Hyprland Linux Features
Brodie Robertson
Installing Linux Software Is More Confusing Than Ever
Brodie Robertson
Clipboard: Simple Unified Linux Clipping Tool
Brodie Robertson
Solus Linux Returns From The Distro Afterlife
Brodie Robertson
uBlue Linux: Immutable Fedora With Batteries Included
Brodie Robertson
More on: Staying Current in AI
View skill →Related AI Lessons
⚡
⚡
⚡
⚡
AI: Energy Taker or Energy Maker
Medium · AI
When AI Asks for More Electricity Than a Country Can Imagine
Medium · AI
You Are Not Behind. The World Is.
Medium · AI
Career choice with the advent of AI - pure Computer Science or learn software with a background of core engineering area
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI