in building or further container import stages. This option strips
SELinux context attributes from the resulting tar archive.
-`Initrd=`, `--initrd`
-
-: Use user-provided initrd(s). Takes a comma separated list of paths to initrd
- files. This option may be used multiple times in which case the initrd lists
- are combined.
-
### [Content] Section
`Packages=`, `--package=`, `-p`
an `mkosi.nspawn` file found in the local directory it is
automatically used for this purpose.
+`Initrd=`, `--initrd`
+
+: Use user-provided initrd(s). Takes a comma separated list of paths to initrd
+ files. This option may be used multiple times in which case the initrd lists
+ are combined.
+
`BaseImage=`, `--base-image=`
: Use the specified directory or file system image as the base image,
parse=config_make_list_parser(delimiter=",", parse=make_path_parser(required=True)),
paths=("mkosi.repart",),
),
- MkosiConfigSetting(
- dest="initrds",
- section="Output",
- parse=config_make_list_parser(delimiter=",", parse=make_path_parser(required=False)),
- ),
MkosiConfigSetting(
dest="packages",
section="Content",
section="Content",
parse=config_make_path_parser(required=True),
),
+ MkosiConfigSetting(
+ dest="initrds",
+ section="Content",
+ parse=config_make_list_parser(delimiter=",", parse=make_path_parser(required=False)),
+ ),
MkosiConfigSetting(
dest="checksum",
section="Validation",
dest="repart_dirs",
action=action,
)
- group.add_argument(
- "--initrd",
- help="Add a user-provided initrd to image",
- metavar="PATH",
- dest="initrds",
- action=action,
- )
group = parser.add_argument_group("Content options")
group.add_argument(
help='Use the given image as base (e.g. lower sysext layer)',
action=action,
)
+ group.add_argument(
+ "--initrd",
+ help="Add a user-provided initrd to image",
+ metavar="PATH",
+ dest="initrds",
+ action=action,
+ )
group = parser.add_argument_group("Validation options")
group.add_argument(