]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bless-boot: Actually return successfully
authorJan Janssen <medhefgo@web.de>
Wed, 2 Aug 2023 13:16:33 +0000 (15:16 +0200)
committerJan Janssen <medhefgo@web.de>
Wed, 2 Aug 2023 13:16:33 +0000 (15:16 +0200)
$ journalctl -u systemd-bless-boot.service
systemd[1]: Starting Mark the Current Boot Loader Entry as Good...
systemd-bless-boot[536]: Marked boot as 'good'. (Boot attempt counter is at 2.)
systemd-bless-boot[536]: Can't find boot counter source file for '/loader/entries/arch.conf': Device or resource busy
systemd[1]: Finished Mark the Current Boot Loader Entry as Good.

src/boot/bless-boot.c

index 59f02b761aca5657ab48c42770f8d4d0244cfc2d..0c0b4f23c7709a170f0e315655180e8f39f55df4 100644 (file)
@@ -483,6 +483,7 @@ static int verb_set(int argc, char *argv[], void *userdata) {
                         log_debug_errno(errno, "Failed to synchronize $BOOT partition, ignoring: %m");
 
                 log_info("Marked boot as '%s'. (Boot attempt counter is at %" PRIu64".)", argv[0], done);
+                return 0;
         }
 
         log_error_errno(SYNTHETIC_ERRNO(EBUSY), "Can't find boot counter source file for '%s': %m", target);