sudo MKOSI_TEST_DEFAULT_VERB=boot python3 -m pytest -m integration -sv tests
+ - name: Build ${{ matrix.distro }}/${{ matrix.format }} UsrOnly
+ run: |
+ tee mkosi.default <<- EOF
+ [Output]
+ UsrOnly=True
+ EOF
+
+ sudo mkosi --force build
+
- name: Build/Boot ${{ matrix.distro }}/${{ matrix.format }} UEFI UKI
run: |
tee mkosi.default <<- EOF
return prefix + ' ' + (suffix if suffix is not None else 'Partition')
-def initialize_partition_table(args: MkosiArgs) -> None:
- if args.partition_table is not None:
+def initialize_partition_table(args: MkosiArgs, force: bool = False) -> None:
+ if args.partition_table is not None and not force:
return
if not args.output_format.is_disk():
def create_image(args: MkosiArgs, for_cache: bool) -> Optional[BinaryIO]:
- initialize_partition_table(args)
+ initialize_partition_table(args, force=True)
if args.partition_table is None:
return None
OutputFormat,
PartitionIdentifier,
die,
+ root_home,
run_workspace_command,
)
f"actions={actions} outside stage3")
emerge_main([*pkgs, *opts, *actions] + PREFIX_OPTS + self.emerge_default_opts)
else:
+ if args.usr_only:
+ root_home(args, root).mkdir(mode=0o750, exist_ok=True)
cmd = ["/usr/bin/emerge", *pkgs, *self.emerge_default_opts, *opts, *actions]