]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Remove unused absolute path conversion in load_config()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 07:58:42 +0000 (09:58 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 6 Aug 2023 07:58:42 +0000 (09:58 +0200)
We already convert these paths to absolute paths during config
parsing.

mkosi/config.py

index 5c1b440100f3707d2adb61d83e7d9d54774c2b70..625d925e050fc2ee64f54652a7b88f77deb7fcbe 100644 (file)
@@ -2157,9 +2157,6 @@ def load_config(args: argparse.Namespace) -> MkosiConfig:
     ):
         die("Sorry, the --repositories option is only supported on pacman, dnf and apt based distributions")
 
-    if args.initrds:
-        args.initrds = [p.absolute() for p in args.initrds]
-
     if args.overlay and not args.base_trees:
         die("--overlay can only be used with --base-tree")