]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: say image file instead of loopback file
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Sep 2023 16:57:39 +0000 (18:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2023 17:10:57 +0000 (19:10 +0200)
After all we can now operate without loopback device, so it might be a
big misleading.

src/partition/repart.c

index 855e908d7539b81a5adab4e84db16137028f0266..a38950c7142e2f92fd20c5d6320eeb24ca632d30 100644 (file)
@@ -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);