From: Lennart Poettering Date: Thu, 17 Mar 2022 17:54:15 +0000 (+0100) Subject: bootctl: add comment, explaining when verb_install() is called X-Git-Tag: v251-rc1~103^2 X-Git-Url: http://git-history.diyao.me/?a=commitdiff_plain;h=8d3e0d607e18cd1e31b8aab35f346189bcfb41dd;p=systemd%2F.git bootctl: add comment, explaining when verb_install() is called --- diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 72bdb7e6b1..e2900291bf 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 */