Debian Codegraph @

upstream/debian-trixie/man8/systemd-bless-boot.service.8

raw
1 '\" t
2 .TH "SYSTEMD\-BLESS\-BOOT\&.SERVICE" "8" "" "systemd 257.13" "systemd-bless-boot.service"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 systemd-bless-boot.service, systemd-bless-boot \- Mark current boot process as successful
24 .SH "SYNOPSIS"
25 .PP
26 systemd\-bless\-boot\&.service
27 .PP
28 /usr/lib/systemd/systemd\-bless\-boot
29 .SH "DESCRIPTION"
30 .PP
31 systemd\-bless\-boot\&.service
32 is a system service that marks the current boot process as successful\&. It\*(Aqs automatically pulled into the initial transaction when
33 \fBsystemd-bless-boot-generator\fR(8)
34 detects that
35 \fBsystemd-boot\fR(7)
36 style boot counting is used\&.
37 .PP
38 Internally, the service operates based on the
39 \fILoaderBootCountPath\fR
40 EFI variable (of the vendor UUID
41 \fB4a67b082\-0a4c\-41cf\-b6c7\-440b29bb8c4f\fR), which is passed from the boot loader to the OS\&. It contains a file system path (relative to the EFI system partition) of the
42 \m[blue]\fBBoot Loader Specification\fR\m[]\&\s-2\u[1]\d\s+2
43 compliant boot loader entry file or unified kernel image file that was used to boot up the system\&.
44 \fBsystemd\-bless\-boot\&.service\fR
45 removes the two "tries done" and "tries left" numeric boot counters from the filename, which indicates to future invocations of the boot loader that the entry has completed booting successfully at least once\&. (This service will hence rename the boot loader entry file or unified kernel image file on the first successful boot\&.)
46 .SH "OPTIONS"
47 .PP
48 The
49 /usr/lib/systemd/systemd\-bless\-boot
50 executable may also be invoked from the command line, taking one of the following command arguments:
51 .PP
52 \fBstatus\fR
53 .RS 4
54 The current status of the boot loader entry file or unified kernel image file is shown\&. This outputs one of
55 "good",
56 "bad",
57 "indeterminate",
58 "clean", depending on the state and previous invocations of the command\&. The string
59 "indeterminate"
60 is shown initially after boot, before it has been marked as "good" or "bad"\&. The string
61 "good"
62 is shown after the boot was marked as "good" with the
63 \fBgood\fR
64 command below, and "bad" conversely after the
65 \fBbad\fR
66 command was invoked\&. The string
67 "clean"
68 is returned when boot counting is currently not in effect\&.
69 .sp
70 This command is implied if no command argument is specified\&.
71 .sp
72 Added in version 240\&.
73 .RE
74 .PP
75 \fBgood\fR
76 .RS 4
77 When invoked, the current boot loader entry file or unified kernel image file will be marked as "good", executing the file rename operation described above\&. This command is intended to be invoked at the end of a successful boot\&. The
78 systemd\-bless\-boot\&.service
79 unit invokes this command\&.
80 .sp
81 Added in version 240\&.
82 .RE
83 .PP
84 \fBbad\fR
85 .RS 4
86 When called the "tries left" counter in the boot loader entry file name or unified kernel image file name is set to zero, marking the boot loader entry or kernel image as "bad", so that the boot loader will not consider it anymore on future boots (at least as long as there are other entries available that are not marked "bad" yet)\&. This command is normally not executed, but can be used to instantly put an end to the boot counting logic if a problem is detected and persistently mark the boot entry as bad\&.
87 .sp
88 Added in version 240\&.
89 .RE
90 .PP
91 \fBindeterminate\fR
92 .RS 4
93 This command undoes any marking of the current boot loader entry file or unified kernel image file as good or bad\&. This is implemented by renaming the boot loader entry file or unified kernel image file back to the path encoded in the
94 \fILoaderBootCountPath\fR
95 EFI variable\&.
96 .sp
97 Added in version 240\&.
98 .RE
99 .PP
100 \fB\-h\fR, \fB\-\-help\fR
101 .RS 4
102 Print a short help text and exit\&.
103 .RE
104 .PP
105 \fB\-\-version\fR
106 .RS 4
107 Print a short version string and exit\&.
108 .RE
109 .SH "SEE ALSO"
110 .PP
111 \fBsystemd\fR(1), \fBsystemd-boot\fR(7), \fBsystemd.special\fR(7)
112 .SH "NOTES"
113 .IP " 1." 4
114 Boot Loader Specification
115 .RS 4
116 \%https://uapi-group.org/specifications/specs/boot_loader_specification
117 .RE