From 8d3e0d607e18cd1e31b8aab35f346189bcfb41dd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 Mar 2022 18:54:15 +0100 Subject: [PATCH] bootctl: add comment, explaining when verb_install() is called --- src/boot/bootctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 72bdb7e6b10..e2900291bf0 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -1932,6 +1932,8 @@ static int verb_install(int argc, char *argv[], void *userdata) { bool install, graceful; int r; + /* Invoked for both "update" and "install" */ + install = streq(argv[0], "install"); graceful = !install && arg_graceful; /* support graceful mode for updates */ -- 2.47.3