]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
initrd: add -k as shorthand for --kernel-version 3543/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 17 Feb 2025 09:16:08 +0000 (10:16 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Mar 2025 12:36:34 +0000 (13:36 +0100)
--kernel-version is the option that I use the most often. Having a short
option would be nice.

'-v' would another option for the option, but I think it could be confused
with --version.

mkosi/initrd.py
mkosi/resources/man/mkosi-initrd.1.md

index 7be2216ea4bd0163c9d903e52c3b55fdf80c026d..3814ef1f011e54738645cca73ae37b6f5b6c906f 100644 (file)
@@ -197,6 +197,7 @@ def initrd_finalize(staging_dir: str, output: str, output_dir: str) -> None:
 
 def initrd_common_args(parser: argparse.ArgumentParser) -> None:
     parser.add_argument(
+        "-k",
         "--kernel-version",
         metavar="KERNEL_VERSION",
         help="Kernel version string",
index dbe4b29bba1f362469d558700fb4fd468866c97e..1fb987b9bfbb0e7e5e9cd013f4863466d9b952b1 100644 (file)
@@ -18,7 +18,7 @@ initrds and Unified Kernel Images for the current running system.
 
 # OPTIONS
 
-`--kernel-version=`
+`--kernel-version=`, `-k`
 :   Kernel version where to look for the kernel modules to include. Defaults to
     the kernel version of the running system (`uname -r`).