From: Jan Janssen Date: Wed, 2 Aug 2023 13:16:33 +0000 (+0200) Subject: bless-boot: Actually return successfully X-Git-Tag: v255-rc1~836^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f30a066ff48325c9197ae3b103cd446852b9f3d;p=thirdparty%2Fsystemd.git bless-boot: Actually return successfully $ 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. --- diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c index 59f02b761ac..0c0b4f23c77 100644 --- a/src/boot/bless-boot.c +++ b/src/boot/bless-boot.c @@ -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);