Skip to content
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

R4.2 (rc1, rc2) unable to boot on Thinkpad T430 when UEFI is enabled #8464

Closed
csarn opened this issue Aug 29, 2023 · 12 comments · Fixed by QubesOS/qubes-anaconda#29
Closed
Labels
affects-4.2 This issue affects Qubes OS 4.2. C: other diagnosed Technical diagnosis has been performed (see issue comments). hardware support P: blocker Priority: blocker. Prevents release or would have prevented release if known prior to release. pr submitted A pull request has been submitted for this issue. r4.2-host-stable T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Milestone

Comments

@csarn
Copy link

csarn commented Aug 29, 2023

Qubes OS release

R4.2 rc1 and rc2

I have tried a fresh install of 4.2 rc1 before, and just today I upgraded 4.1 to 4.2 rc2 using qubes-dist-upgrade.

Brief summary

After GRUB boot screen, the screen goes black and the laptop seems to do nothing.

Steps to reproduce

  • Set boot mode to UEFI on a Thinkpad T430
  • Install any Qubes R4.2 version (rc1, rc2) in any way (clean / upgrade) on that Thinkpad
  • Try to boot the installed OS

Expected behavior

Even with UEFI enabled, Qubes boots fine, as it does in R4.1.

Actual behavior

Booting after installation/upgrade never makes it past GRUB. The GRUB screen behaviour is this:

  • arrow keys (up, down) let me select different menu entries (Qubes, Advanced Options, UEFI Firmware)
  • if I press "e" to edit a command line, nothing happens, but if I press an arrow key afterwards, I get a black screen
  • if I press Enter on any of the menu entries, I also get a black screen
  • The HDD LED indicates no disk activity on that black screen

If in the BIOS I disable UEFI boot and only enable legacy boot for Qubes installation, R4.2 rc2 boots fine.

@csarn csarn added P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. labels Aug 29, 2023
@andrewdavidwong
Copy link
Member

Possible related or duplicate issue: #8395

@andrewdavidwong andrewdavidwong added C: installer P: blocker Priority: blocker. Prevents release or would have prevented release if known prior to release. hardware support needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. affects-4.2 This issue affects Qubes OS 4.2. and removed P: default Priority: default. Default priority for new issues, to be replaced given sufficient information. labels Aug 29, 2023
@csarn
Copy link
Author

csarn commented Aug 30, 2023

#8395 is about the installation medium being unable to boot (in UEFI mode), whereas my issue is with the installed system.
Is there something going on during installation that depends on the way the installation medium was booted? While I had UEFI enabled for installation, I did NOT set it to "UEFI only", but to "UEFI first, legacy second", which might allow the installation medium to boot in legacy mode.

On second thought though, how would the "installation medium boot problem" be related to my problem, when I get an unbootable system also by upgrading a working 4.1 installation? In that case, there is no installation medium involved at all.

@macandchief
Copy link

Same happened here. Trying to install RC2 (downloaded via torrent) on mSata lead to a working Grub screen with behavior as described above (installation medium check was ok).

For a further test I installed an other distro and it booted fine. Hardware looks to be ok .

After that I tried to install the recent stable version 4.1.2 (dl via torrent). Installation medium check failed. I did write all zeros on the usb, used dd to write the .iso file again and tested the medium. The check failed again. Still opted for installation and in the end it went fine. This stable version also booted fine.

@k4r4b3y
Copy link

k4r4b3y commented Aug 31, 2023

I am having a similar bug on my thinkpad x220 with SeaBios on it.

I installed QubesOS 4.2-rc2 on it. Installation completes from the USB. I then click on "reboot" on the installer interface. When the computer tries to boot from the hard disk, it doesn't go forward than the GRUB screen, saying "Booting from Harddisk!"---gets frozen.

@rustybird
Copy link

rustybird commented Aug 31, 2023

On an x230 with SeaBIOS, after the installation I get a similar hang on the GRUB screen. Looks like it's due to GRUB's gfxterm output. After generating a grub.cfg that uses console instead (whose inherent "dark mode" I like better anyway), it boots fine.

Here's a convoluted way to install R4.2-rc2 with such a grub.cfg: On the installer boot menu, add systemd.mask=anaconda.service to the kernel command line (because restarting the Anaconda installer seems to be broken/unreliable now...); boot; switch to a console with Ctrl-Alt-F2; replace gfxterm with console in /etc/anaconda/profile.d/qubesos.conf; copy anaconda.service to anaconda2.service in /usr/lib/systemd/system/ (because systemd apparently cannot unmask units masked through a kernel parameter); systemctl start anaconda2.

@macandchief
Copy link

Indeed, I'd like to confirm that the steps described above do work for me, thank you. It takes couple of seconds before it starts after systemctl start anaconda2. Unrelated, just mentioning that after boot I had issues pointed out in #8465.

@andrewdavidwong andrewdavidwong added diagnosed Technical diagnosis has been performed (see issue comments). and removed needs diagnosis Requires technical diagnosis from developer. Replace with "diagnosed" or remove if otherwise closed. labels Sep 1, 2023
@andrewdavidwong andrewdavidwong added this to the Release 4.2 milestone Sep 1, 2023
@marmarek
Copy link
Member

marmarek commented Sep 1, 2023

@csarn does it help if you regenerate /boot/grub2/grub.cfg as @rustybird suggests above? To do that on your installed system, you can probably use installation image and use rescue option to get shell.

@marmarek
Copy link
Member

marmarek commented Sep 2, 2023

@rustybird do you think it's reasonable to change the default to console then? It will look worse for those where graphical menu worked (I guess the majority...). But OTOH, there were also few other problems with the graphical menu, like it having too small resolution (barely anything fits on the screen) or being very slow. Not sure how frequent those issues are or whether console menu fixes those too...

@marmarek
Copy link
Member

marmarek commented Sep 2, 2023

@rustybird
Copy link

rustybird commented Sep 2, 2023

do you think it's reasonable to change the default to console then?

IMO it's great (other than losing the branding). I've used it since R3 to avoid the big ol' screenful of blue and white light if I ever have to reboot at night before sleep.

@macandchief
Copy link

@marmarek It works for me, boots into asking for the encryption password as it should.

@csarn
Copy link
Author

csarn commented Sep 2, 2023

@marmarek Worked for me, too. Thanks!

EDIT:
By the way, should that ISO have included the fix for #8395 ?
Because I had to set the BIOS to allow a fallback to legacy boot to be able to boot the USB medium with that ISO dd'ed to it. It wouldn't boot in UEFI-only mode.

@andrewdavidwong andrewdavidwong added the pr submitted A pull request has been submitted for this issue. label Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.2 This issue affects Qubes OS 4.2. C: other diagnosed Technical diagnosis has been performed (see issue comments). hardware support P: blocker Priority: blocker. Prevents release or would have prevented release if known prior to release. pr submitted A pull request has been submitted for this issue. r4.2-host-stable T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants