-
Notifications
You must be signed in to change notification settings - Fork 556
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
LUKS password fails with different locale #596
Comments
It in fact uses the |
Which version of the ISO were you using? Because since a while back we've modified the HOOKS to contain This is what the mkinitcpio hook looks like if you're running encrypted setups: This assumes that We should perhaps consider adding |
I've used v2.2.0 at that time. I can give it a try at the weekend, didn't install my system this way. |
It would help a lot if you did! |
I've tested it now with the Archboot ISO 2022.05.01-x86_64 and archinstall v2.4.2. The issue remains unchanged. /etc/mkinitcpio.conf
/etc/vconsole.conf
After the installation and final reboot I tried to decrypt the partition, but it refused my password, so I changed the keyboard layout of my 2nd machine to US, checked which characters I needed to type and et voilà it unlocked using the US keyboard layout... So I assume the correct keymap is not loaded with systemd-boot. A workaround would be to switch the keyboard layout temporarily to US when the user enters the encryption password in the archinstall script and switch back after the input was submitted. |
It's weird, because I can't find any information that this should not work.
Should work just fine. I was wondering if we got the correct layout while setting the password? archinstall/archinstall/lib/disk/filesystem.py Lines 126 to 128 in a748f3f
After rebooting, I've verified that this issue presents itself 100% as you describe. Changing the order of |
What appears to fix it is setting:
In And it appears that this has been an on-going bug for ages:
We can make sure to add |
Wait, maybe we can do |
Scratch those two previous posts.. Re-did it again and now it's back to not functioning. |
Ah, after one of the above changes I had to re-run
|
Thanks a lot for troubleshooting this problem. Let me know if I can help. Interestingly on a 2nd machine I have set up the encrypted root partition a bit differently using dm-crypt instead of LUKS. In that case everything works as expected with |
I've added a PR to address this. Running tests against it now. |
Just got bit by this bug with archiso 2023-04. After the install this was my
I changed it to:
and then after rebuilding the initramfs (and applying the fix for #1716), unlocking the root LUKS container with my French layout worked. This is pretty major for all the non-QWERTY/en_US using userbase... Cheers |
Did you select |
It baffles me because it is the option I always select anytime I get the choice, but after reviewing the install log it appears that indeed, I had only selected On the flip side of the coin, doesn't that mean this issue is actually fixed? |
I think so yes, I'll go ahead and close it and can re-open if needed. |
I had the same issue (arch ISO of 1st January 2024), installation in fr-latin9 ( correctly set in KEYMAP of /etc/vconsole.conf ), I had to fill the password in QWERTY rather than in AZERTY. May be it's a little bug in the archinstall, perhaps the /etc/vconsole.conf is updated only after using mkinitcpio? |
You are correct. The mkinitcpio call will occur in One way to fix this issue would be to have Another way to do this would be to just add a call to archinstall/archinstall/scripts/guided.py Lines 201 to 203 in f107104
@svartkanin, changes have been made to profiles since this comment was added, do you know if this comment is still accurate or not? I cannot figure out what it is referring to and your help would be appreciated. |
The profile installation process installs xorg and other stuff, so I think for the set kb lang to work properly on x11 it would need to be after. |
Would you mind reopening the issue? Thanks. Here is what
This will be the result of executing I did some digging through the code but did not find anything. |
I just encountered the same issue. My setup and experience is similar to that one of @lakano , except that I did not select the UKI option. Rebuilding the initramfs after install resulted in a correct keymap being used during initramfs. |
After some more research I would say the following code comment is not accurate. archinstall/archinstall/scripts/guided.py Lines 196 to 198 in 624d3d5
Here is what is wrong with the code comment.
Considering this, moving the [1] https://wiki.archlinux.org/title/Linux_console/Keyboard_configuration |
When performing the installation with a different locale than English, the LUKS password doesn't work. I assume once the installation finished and you boot the system it's again using the English locale to decrypt the LUKS partition?
The text was updated successfully, but these errors were encountered: