]> 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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 Oct 2025 09:48:58 +0000 (11:48 +0200)
(cherry picked from commit 992716c9ab452457222cb1da2be34ce070ead309)

src/bootctl/bootctl.c

index 0c3e4c5c15f1b46843bfe15bf99c282d85869e1e..ccc258c6dffc2dd9afac4b3588463148f35830af 100644 (file)
@@ -594,7 +594,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");