if (argc - optind > 1)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "Expected at most one argument, the path to the block device.");
+ "Expected at most one argument, the path to the block device or image file.");
if (arg_make_ddi) {
if (arg_definitions)
if (IN_SET(arg_empty, EMPTY_FORCE, EMPTY_REQUIRE, EMPTY_CREATE) && !arg_node && !arg_image)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "A path to a device node or loopback file must be specified when --empty=force, --empty=require or --empty=create are used.");
+ "A path to a device node or image file must be specified when --make-ddi=, --empty=force, --empty=require or --empty=create are used.");
if (arg_split && !arg_node)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
- "A path to a loopback file must be specified when --split is used.");
+ "A path to an image file must be specified when --split is used.");
if (arg_tpm2_public_key_pcr_mask_use_default && arg_tpm2_public_key)
arg_tpm2_public_key_pcr_mask = INDEX_TO_MASK(uint32_t, TPM2_PCR_KERNEL_BOOT);