Wednesday, December 2, 2026

F46 Change Proposal: Use kmscon for LUKS password fallback (self-contained)

Wiki - https://fedoraproject.org/wiki/Changes/UseKmsconLuksFallback Discourse poll - https://discussion.fedoraproject.org/t/f46-change-proposal-use-kmscon-for-luks-password-fallback-self-contained/209953/2 This is a proposed Change for Fedora Linux. This document represents a proposed Change. As part of the Changes process, proposals are publicly announced in order to receive community feedback. This proposal will only be implemented if approved by the Fedora Engineering Steering Committee. == Summary == In Fedora 45, kmscon replaced the VT console for general usage, but there are a few remaining cases where fbcon is still used. For the LUKS password, if plymouth is not present, systemd will fallback to fbcon. This change will configure systemd to use kmscon instead. == Owner == * Name: [[User:jfalempe| Jocelyn Falempe]] * Email: <jfalempe@redhat.com> == Detailed Description == With this change, kmscon provides two systemd unit files to enable systemd-ask-password with kmscon. Theses units should be enabled during installation. == Feedback == == Benefit to Fedora == The user will be able to enter its password with the exact same keyboard layout that he configured using anaconda. This is a constant source of problems, because fbcon uses the kernel keyboard layout, and by default the password entered is not visible, so it's hard to figure out that the problem is a mismatch conversion between an xkb layout and a kernel layout. With this change, and the change to use kmscon for the emergency console too, it's possible to disable the legacy fbcon and fbdev emulation in the kernel. It will also be possible to use drm_log by default for early kernel boot log. (I will submit two other changes for emergency console, and drm_log). == Scope == * Proposal owners: ** Write the systemd unit files https://github.com/kmscon/kmscon/pull/627 ** Package them for Fedora. ** Enable systemd-ask-password-kmscon.path ** Update selinux rules, to allow kmscon to start systemd-tty-ask-password-agent * Other developers: * Release engineering: [https://forge.fedoraproject.org/releng/tickets/issues #Releng issue number] * Policies and guidelines: N/A (not needed for this Change) * Trademark approval: N/A (not needed for this Change) * Alignment with the Fedora Strategy: == Upgrade/compatibility impact == == Early Testing (Optional) == Do you require 'QA Blueprint' support? Y/N <!-- Optional Step for System-Wide Changes only --> == How To Test == You need a Fedora rawhide installation, with encrypted root filesystem. Disable plymouth, as it's the default UI for luks password, and disable selinux as it will prevent kmscon from starting: `sudo grubby --update-kernel=ALL --remove-args="rhgb quiet" --args="plymouth.enable=0 selinux=0"` Copy the three files from https://github.com/kmscon/kmscon/pull/627 Move the systemd files: `sudo mv systemd-ask-password-kmscon.* /usr/lib/systemd/system/` `sudo systemctl enable systemd-ask-password-kmscon.path` Move the dracut configuration file: `sudo mkdir /usr/lib/dracut/modules.d/99kmscon-askpass` `sudo mv module-setup.sh /usr/lib/dracut/modules.d/99kmscon-askpass/` `sudo dracut --regenerate-all --force` And then reboot, and if everything goes well, the prompt for the LUKS password should be done in kmscon. == User Experience == There are two visible changes for the user: * The font for the password prompt will be larger and different. * The keyboard layout will use xkb, so it will be the same as what was used to enter the password in anaconda. == Dependencies == == Contingency Plan == * Contingency mechanism: (What to do? Who will do it?) N/A (not a System Wide Change) * Contingency deadline: N/A (not a System Wide Change) * Blocks release? N/A (not a System Wide Change), Yes/No == Documentation == N/A (not a System Wide Change) == Release Notes == -- Aoife Moloney Fedora Operations Architect Fedora Project Matrix: @amoloney:fedora.im IRC: amoloney -- _______________________________________________ devel-announce mailing list -- devel-announce@lists.fedoraproject.org To unsubscribe send an email to devel-announce-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new

No comments:

Post a Comment