]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi-initrd: copy local vconsole configuration
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Wed, 2 Apr 2025 10:02:39 +0000 (12:02 +0200)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 2 Apr 2025 11:38:29 +0000 (13:38 +0200)
Otherwise it can be very hard to enter a password set on the host using a
keyboard with some specific language layout.

mkosi/initrd.py

index 5948b7117cfc2d24b6c952231036bc6b4a322e68..b292765eefefd45cae72c2dbffde61b85ac4bebb 100644 (file)
@@ -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.