]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootctl: fix reference to non-existent option in error log
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 8 Sep 2025 10:30:35 +0000 (12:30 +0200)
committerAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Mon, 8 Sep 2025 10:30:35 +0000 (12:30 +0200)
src/bootctl/bootctl.c

index 192f9ddb603ac62eace5b9a7db0b242301f014bb..52066e2999038ae9a00e3ee7050f2c0416a608fa 100644 (file)
@@ -652,7 +652,7 @@ static int parse_argv(int argc, char *argv[]) {
                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--install-from-host is only supported with --root= or --image=.");
 
         if (arg_dry_run && argv[optind] && !STR_IN_SET(argv[optind], "unlink", "cleanup"))
-                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--dry is only supported with --unlink or --cleanup");
+                return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "--dry-run is only supported with --unlink or --cleanup");
 
         if (arg_secure_boot_auto_enroll && !arg_certificate)
                 return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Secure boot auto-enrollment requested but no certificate provided");