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

System won't boot with automatic partitioning and encryption #1726

Open
philmmanjaro opened this issue Jun 18, 2021 · 10 comments
Open

System won't boot with automatic partitioning and encryption #1726

philmmanjaro opened this issue Jun 18, 2021 · 10 comments

Comments

@philmmanjaro
Copy link
Member

Describe the bug
On Manjaro we currently face the issue that with automatic partitioning with encryption the system won't boot. I'm tested a Gnome Dev Image with latest Calamares. We also have a Gnome Dev Image with 3.2.39.3.

To Reproduce
Steps to reproduce the behavior:

  1. Install Manjaro with automatic mode and luks encryption
  2. Reboot the system to the installed OS and try to enter the password
  3. You will land in grub-rescue

Expected behavior
Boot up normally after entering the password

Screenshots and Logs
VirtualBox_Manjaro BSD_18_06_2021_11_21_42
Summary Swiss-German

VirtualBox_Manjaro BSD_18_06_2021_11_51_43
Summary US English

VirtualBox_Manjaro BSD_18_06_2021_11_46_50
Boot Swiss-German

VirtualBox_Manjaro BSD_18_06_2021_12_01_48
Boot US-English

Logs:

Additional context
I've to still check the grub.cfg files and maybe other distributions Arch-based. Also I only tested BIOS on Virtualbox so far. EFI installs are still open to be tested on my end.

@adriaandegroot
Copy link
Contributor

This seems like a duplicate, but then we should close the others as dupes of this one on the assumption that you're equipped to provide useful logs and other debugging information.

@philmmanjaro
Copy link
Member Author

Well, I've an update. English works. I entered asdfg instead of asdfgh, which was the password. So this leads to the issue with keyboard layouts in grub not in English ...

@abucodonosor
Copy link
Contributor

The keyboard issue regarding that cannot be solved in calamares at all as long grub doesn't change how that works.

While it would be technically possible, every distribution grub update will override that, besides that calamares should not
have any businesses modifying grub images.

@philmmanjaro
Copy link
Member Author

Here is the grub.cfg file of the English installation. There I see a set lang=en_US ...

@philmmanjaro
Copy link
Member Author

So in the end it is a keyboard layout issue by defaulting to US-EN on grub stage1. I found this tutorial on how to change it to DE-AT. Might work for other layouts also.

@philmmanjaro
Copy link
Member Author

Similar topic was discussed in our old forums.

@philmmanjaro
Copy link
Member Author

Here is another one. Maybe we can implement some like this into Calamares.

@abucodonosor
Copy link
Contributor

Here is the grub.cfg file of the English installation. There I see a set lang=en_US ...

The grub.cfg doesn't matter for the decryption password, you can set it to what you wish, the input will be always EN for that,
bc is what grub supports as default in his core image.

Basically, for that to work, you need to take the exact keyboard layout from /usr/share/X11/xkb/symbols/, then kbdcomp compile it to
somewhere in /boot/grub/, then modify input method in the config and insmod keylayouts and at_keyboard, etc..

This stuff needs to be done from the distribution, not calamares, IOW the grub2-update script or whatever is called has to do this.

@philmmanjaro
Copy link
Member Author

Well, this might need to be the case when /boot is not encrypted, which brings us to this issue: #1311

@apt-ghetto
Copy link
Contributor

The problem was described in #1203 and I provided also a possible solution how to solve/workaround it in Calamares.

Grub has only the american keyboard layout. Either the distribution delivers a Grub core image with your needed (or all) keyboard layout(s) (the core.img is then also signed and Secure Boot ready).
Or you workaround it by compiling the keyboard layout into the Grub core image, but then Secure Boot will not work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants