exec mkosi-chroot "$SCRIPT" "$@"
fi
```
+- Removed `--tar-strip-selinux-context=` option. We now label all files
+ properly if selinux is enabled and if users don't want the labels,
+ they can simply exclude them when extracting the archive.
## v14
https://uapi-group.org/specifications/specs/extension_image for more
information.
-`TarStripSELinuxContext=`, `--tar-strip-selinux-context`
-
-: If running on a SELinux-enabled system (Fedora Linux, CentOS, Rocky Linux,
- Alma Linux), files
- inside the container are tagged with SELinux context extended
- attributes (`xattrs`), which may interfere with host SELinux rules
- in building or further container import stages. This option strips
- SELinux context attributes from the resulting tar archive.
-
### [Content] Section
`Packages=`, `--package=`, `-p`
"-c", "--xattrs",
"--xattrs-include=*",
"--file", state.staging / state.config.output_with_format,
- *(["--xattrs-exclude=security.selinux"] if state.config.tar_strip_selinux_context else []),
".",
]
compress_output: Compression
image_version: Optional[str]
image_id: Optional[str]
- tar_strip_selinux_context: bool
incremental: bool
packages: list[str]
remove_packages: list[str]
section="Output",
help="Set ID for image",
),
- MkosiConfigSetting(
- dest="tar_strip_selinux_context",
- metavar="BOOL",
- nargs="?",
- section="Output",
- parse=config_parse_boolean,
- help="Do not include SELinux file context information in tar. Not compatible with bsdtar.",
- ),
MkosiConfigSetting(
dest="split_artifacts",
metavar="BOOL",
if args.cmdline and not args.verb.supports_cmdline():
die(f"Arguments after verb are not supported for {args.verb}.")
- if shutil.which("bsdtar") and args.distribution == Distribution.openmandriva and args.tar_strip_selinux_context:
- die("Sorry, bsdtar on OpenMandriva is incompatible with --tar-strip-selinux-context")
-
if args.cache_dir:
args.cache_dir = args.cache_dir / f"{args.distribution}~{args.release}"
if args.build_dir: