cmdline += ["--defer-partitions", ",".join(skip)]
if split and state.config.split_artifacts:
cmdline += ["--split=yes"]
+ if state.config.sector_size:
+ cmdline += ["--sector-size", state.config.sector_size]
if state.config.repart_dirs:
for d in state.config.repart_dirs:
image_version: Optional[str]
split_artifacts: bool
repart_dirs: list[Path]
+ sector_size: Optional[str]
overlay: bool
use_subvolumes: ConfigFeature
paths=("mkosi.repart",),
help="Directory containing systemd-repart partition definitions",
),
+ MkosiConfigSetting(
+ dest="sector_size",
+ section="Output",
+ parse=config_parse_string,
+ help="Set the disk image sector size",
+ ),
MkosiConfigSetting(
dest="overlay",
metavar="BOOL",
Image Version: {config.image_version}
Split Artifacts: {yes_no(config.split_artifacts)}
Repart Directories: {line_join_list(config.repart_dirs)}
+ Sector Size: {none_to_default(config.sector_size)}
Overlay: {yes_no(config.overlay)}
Use Subvolumes: {yes_no_auto(config.use_subvolumes)}
image root, so any `CopyFiles=` source paths in partition definition files will
be relative to the image root directory.
+`SectorSize=`, `--sector-size=`
+
+: Override the default sector size that systemd-repart uses when building a disk
+ image.
+
`Overlay=`, `--overlay`
: When used together with `BaseTrees=`, the output will consist only out of