From: Lennart Poettering Date: Thu, 28 Sep 2023 16:57:39 +0000 (+0200) Subject: repart: say image file instead of loopback file X-Git-Tag: v255-rc1~319^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37a38788015b51c5455bc97c30341e1f12285649;p=thirdparty%2Fsystemd.git repart: say image file instead of loopback file After all we can now operate without loopback device, so it might be a big misleading. --- diff --git a/src/partition/repart.c b/src/partition/repart.c index 855e908d753..a38950c7142 100644 --- a/src/partition/repart.c +++ b/src/partition/repart.c @@ -6838,7 +6838,7 @@ static int parse_argv(int argc, char *argv[]) { 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) @@ -6918,11 +6918,11 @@ static int parse_argv(int argc, char *argv[]) { 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);