1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

repart: say image file instead of loopback file

After all we can now operate without loopback device, so it might be a
big misleading.
This commit is contained in:
Lennart Poettering 2023-09-28 18:57:39 +02:00
parent 95515896f6
commit 37a3878801

View 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);