Skip to content

Commit

Permalink
Reorder PeAddons= and fix summary name
Browse files Browse the repository at this point in the history
  • Loading branch information
NekkoDroid authored and DaanDeMeyer committed Sep 29, 2024
1 parent f8e2278 commit b5791e2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions mkosi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,6 @@ class Config:
shim_bootloader: ShimBootloader
unified_kernel_images: ConfigFeature
unified_kernel_image_format: str
pe_addons: list[Path]
initrds: list[Path]
initrd_packages: list[str]
initrd_volatile_packages: list[str]
Expand All @@ -1597,6 +1596,7 @@ class Config:
kernel_modules_include: list[str]
kernel_modules_exclude: list[str]
kernel_modules_include_host: bool
pe_addons: list[Path]

kernel_modules_initrd: bool
kernel_modules_initrd_include: list[str]
Expand Down Expand Up @@ -2553,15 +2553,6 @@ def parse_ini(path: Path, only_sections: Collection[str] = ()) -> Iterator[tuple
# default=
help="Specify the format used for the UKI filename",
),
ConfigSetting(
dest="pe_addons",
long="--pe-addon",
metavar="PATH",
section="Content",
parse=config_make_list_parser(delimiter=",", parse=make_path_parser()),
recursive_paths=("mkosi.pe-addons/",),
help="Configuration files to generate PE addons",
),
ConfigSetting(
dest="initrds",
long="--initrd",
Expand Down Expand Up @@ -2623,6 +2614,15 @@ def parse_ini(path: Path, only_sections: Collection[str] = ()) -> Iterator[tuple
parse=config_make_list_parser(delimiter=","),
help="Exclude the specified kernel modules from the image",
),
ConfigSetting(
dest="pe_addons",
long="--pe-addon",
metavar="PATH",
section="Content",
parse=config_make_list_parser(delimiter=",", parse=make_path_parser()),
recursive_paths=("mkosi.pe-addons/",),
help="Configuration files to generate PE addons",
),
ConfigSetting(
dest="kernel_modules_initrd",
metavar="BOOL",
Expand Down Expand Up @@ -4489,14 +4489,14 @@ def summary(config: Config) -> str:
Shim Bootloader: {config.shim_bootloader}
Unified Kernel Images: {config.unified_kernel_images}
Unified Kernel Image Format: {config.unified_kernel_image_format}
Unified Kernel Image Addons: {line_join_list(config.pe_addons)}
Initrds: {line_join_list(config.initrds)}
Initrd Packages: {line_join_list(config.initrd_packages)}
Initrd Volatile Packages: {line_join_list(config.initrd_volatile_packages)}
Kernel Command Line: {line_join_list(config.kernel_command_line)}
Kernel Modules Include: {line_join_list(config.kernel_modules_include)}
Kernel Modules Exclude: {line_join_list(config.kernel_modules_exclude)}
Kernel Modules Include Host: {yes_no(config.kernel_modules_include_host)}
PE Addons: {line_join_list(config.pe_addons)}
Kernel Modules Initrd: {yes_no(config.kernel_modules_initrd)}
Kernel Modules Initrd Include: {line_join_list(config.kernel_modules_initrd_include)}
Expand Down

0 comments on commit b5791e2

Please sign in to comment.