From: Antonio Alvarez Feijoo Date: Wed, 2 Apr 2025 10:02:39 +0000 (+0200) Subject: mkosi-initrd: copy local vconsole configuration X-Git-Tag: v26~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8856a2f1204fac775f8efe91bf155a91ec67e5fe;p=thirdparty%2Fmkosi.git mkosi-initrd: copy local vconsole configuration Otherwise it can be very hard to enter a password set on the host using a keyboard with some specific language layout. --- diff --git a/mkosi/initrd.py b/mkosi/initrd.py index 5948b7117..b292765ee 100644 --- a/mkosi/initrd.py +++ b/mkosi/initrd.py @@ -380,6 +380,9 @@ def main() -> None: if Path("/etc/kernel/cmdline").exists(): cmdline += ["--kernel-command-line", Path("/etc/kernel/cmdline").read_text()] + if Path("/etc/vconsole.conf").exists(): + cmdline += ["--extra-tree=/etc/vconsole.conf:/etc/vconsole.conf"] + # Resolve dnf binary to determine which version the host uses by default # (to avoid preferring dnf5 if the host uses dnf4) # as there's a much bigger chance that it has a populated dnf cache directory.