New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB-Boot Debian installer #699
Comments
@alex-nitrokey : My guess is that the kernel you try to kexec in has been made incompatible to the patches applied to kexec for it to boot properly. Probably the same issue that in #672 Haven't reproduced. Just an insight. |
I don't think the Debian installer loads the i915 module and relies on just basic graphics (not sure of the terminology here). I'm not sure if you attempt to launch the graphical installer if this helps at all however I'm pretty sure there's no mode setting. This is why Ubuntu's and Qubes installer work. My experience of kexec is that nothing will be displayed on the screen when kexecing into a system with nomodeset from a system where a direct rendering manager module has been used (i915, nouveau, radeon) |
This actually might be a good hint here. I can test around a bit, but I am not sure, how to add the i915 module to the initrd in the installer and how to set the correct mode setting for the kernel. Any suggestions? I am not that Debian experienced in this regard... and changing the installer iso might be problematic anyway. In best case we could change the kexec command in a way that it works on the kernel/initram as well 🤔 |
I assume the i915 module would have to be one that was built with the same kernel as the installer, if the installer uses the same kernel that is in the Debian repos you should be able to get the module from there. Unfortunately the other option I see is to not allow heads to do any modesetting (remove i915), however this will probably break fbwhiptail and you would have to rely on generic-init. Again another option although undesirable is to use another machine to install Debian and make sure i915 is loaded into the initrd. |
Same problem with GuixSD (before new release). Also heads can't boot in FDE disk and can't boot any BSD. I have no idea how to boot OpenBSD from heads. |
I would say it is more or less intended that Heads does not boot non-linux kernel, as the kexec is supposed to ensure a chain of trust and kexec does not boot anything other than linux afair. |
On the Librem 13 (PureBoot beta11), I found that the following patch to kexec seems to solve the issue:
It's not clear to me, however, what the difference is between VIDEO_TYPE_VLFB and VIDEO_TYPE_EFI - either value seems to work just as well for the Debian kernel. |
sound promising, will try it next week myself! |
Works like a charm. Tested Debian installer (graphical and text-based) and booting a Ubuntu Installation. I do not think that this would break anything, but more testing might be useful. |
Awesome news. Will test in my next merging spree. PR? |
Fix kexec to work with Debian Installer (fixes #699)
Did anybody successfully boot a Debian installation transferred via dd on a USB drive? For example this image.
It appears to me that one can not kexec into the provided kernel/initram of the iso, neither on heads nor an another system. Is this a known bummer or is there anything one can do about it? Or maybe the system message are just not transferred?
what I does
trying to usb-boot to a Debian installation USB drive, prepared via dd and the install iso
what does happen
You see the kexec message that it is booting the kernel, nothing happens afterwards (the screen freezes).
what I expect
booting into the Debian installer
The text was updated successfully, but these errors were encountered: