forked from oamg/leapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleapp.1
170 lines (123 loc) · 5.49 KB
/
leapp.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
.TH LEAPP "1" "2020-04-16" "leapp 0.11.0" "User Commands"
.SH NAME
leapp \- command line interface for upgrades between major OS versions
.SH SYNOPSIS
.B leapp
[\fB-h\fR|\fB--help\fR]
[\fB--version\fR]
<\fIcommand\fR> [\fIcommand options\fR]
.SH DESCRIPTION
\fBleapp\fR is a command line utility for running specific workflows related to upgrading between major OS releases. Currently, it's able to perform upgrades from RHEL 7 to RHEL 8.
.SH OPTIONS
\fB-h\fR, \fB--help\fR
Show usage info and exit.
\fB--version\fR
Show version number of the utility and exit.
.SH COMMANDS
.B preupgrade
Generates a pre-upgrade report.
.B upgrade
Upgrades the current system to the next available major version.
.B answer
Manages answerfile generation: registers persistent user choices for specific dialog sections.
.B list-runs
Lists previous leapp upgrade executions.
.SH "COMMAND SPECIFIC OPTIONS"
.SS preupgrade/upgrade
\fB--debug\fR
Print all available log messages (debug, info, warning, error, critical) and the output of executed commands to stderr.
By default only error and critical level messages are printed.
\fB--verbose\fR
Print all but debug log messages (info, warning, error, critical) to stderr.
By default only error and critical level messages are printed.
\fB--enablerepo\fR <\fIrepoid\fR>
Enable specified repository. Can be used multiple times.
\fB--no-rhsm\fR
Skip actions that use Red Hat Subscription Manager. You'll also have to supply custom repositories through \fB--enablerepo\fR (see above).
\fB--whitelist-experimental\fR <\fIActorName\fR>
Enable an experimental actor. Can be used multiple times.
To use this variable, \fBLEAPP_UNSUPPORTED\fR has to be set. See \fBDeveloper variables\fR for more information.
\fB--reboot\fR
(upgrade only) Automatically perform reboot when requested.
\fB--resume\fR
(upgrade only) Continue the last execution after it was stopped (e.g. after reboot).
.SS answer
\fB--add\fR
If set, sections will be created even if missing in original answerfile.
\fB--section\fR <\fIdialog_sections\fR>
Register answer for a specific section in the answerfile. Can be used multiple times.
.SH ENVIRONMENT
If the argument for the environment variables below is not specified, it is possible to set them to either 1 (true) or 0 (false). They default to 0.
.B LEAPP_CONFIG
.RS 4
Overrides the default location of \fIleapp.conf\fR. If not specified, \fI.leapp/leapp.conf\fR is used when the command is executed inside a leapp repository, otherwise the default \fI/etc/leapp/leapp.conf\fR is used.
.RE
.B LEAPP_LOGGER_CONFIG
.RS 4
Overrides the default location of \fIlogger.conf\fR. If not specified, the default \fI/etc/leapp/logger.conf\fR is used.
.RE
.B LEAPP_ENABLE_REPOS
.RS 4
Specify repositories (repoids) split by comma, that should be used during the in-place upgrade to the target system. It's overwritten automatically in case the \fI--enablerepo\fR option of the leapp utility is used. It's recommended to use the \fI--enablerepo\fR option instead of the envar.
.RE
.B LEAPP_DEBUG
.RS 4
Enables debug logging. Equivalent to \fB--debug\fR, which takes precedence.
.RE
.B LEAPP_VERBOSE
.RS 4
Enables debug logging. Equivalent to \fB--verbose\fR, which takes precedence.
.RE
.B LEAPP_GRUB_DEVICE
.RS 4
Overrides the automatically detected storage device with GRUB core (e.g. /dev/sda).
.RE
.B LEAPP_NO_RHSM
.RS 4
Skip actions that use Red Hat Subscription Manager. Equivalent to \fB--no-rhsm\fR, which takes precedence.
.RE
.B LEAPP_OVL_SIZE
.RS 4
For each XFS partition created with \fIftype=0\fR, leapp creates an overlay file in order to proceed. This option sets the size (in MB) of every such file. Defaults to \fB2048\fR.
.RE
.SS Developer variables
These variables shouldn't be needed under typical circumstances.
.B LEAPP_UNSUPPORTED
.RS 4
Necessary in case you use any variable starting with \fBLEAPP_DEVEL\fR (see below) or use \fB--whitelist-experimental\fR.
By setting this variable to 1, you acknowledge that the upgrade is not going to be supported by Red Hat.
.RE
.B LEAPP_DEVEL_RPMS_ALL_SIGNED
.RS 4
If set, leapp will consider all installed RPMs to be signed by Red Hat and upgrade them. By default, leapp only handles RPMs signed by Red Hat. What happens with RPMs not signed by Red Hat is undefined.
.RE
.B LEAPP_DEVEL_TARGET_RELEASE \fR<\fIversion\fR>
.RS 4
Changes the default target RHEL 8 minor version.
.RE
.B LEAPP_DEVEL_SKIP_CHECK_OS_RELEASE
.RS 4
If set, leapp will not check whether the source RHEL 7 version is the supported one.
.RE
.B LEAPP_DEVEL_DM_DISABLE_UDEV
.RS 4
Disables udev support in libdevmapper, dmsetup and LVM2 tools globally without a need to modify any existing configuration settings. Useful if the system environment does not use udev.
.RE
.B LEAPP_DEVEL_SOURCE_PRODUCT_TYPE \fR<\fIproduct_type\fR>
.RS 4
Specifies source product type. Expected values: \fBga\fR, \fBbeta\fR, \fBhtb\fR. Defaults to \fBga\fR.
.RE
.B LEAPP_DEVEL_TARGET_PRODUCT_TYPE \fR<\fIproduct_type\fR>
.RS 4
Specifies target product type. Expected values: \fBga\fR, \fBbeta\fR, \fBhtb\fR. Defaults to \fBga\fR.
.RE
.SH "EXIT CODES"
.B 0
\- No error occurred.
.B 1
\- Any actor in a workflow reported an error (through calling \fBreport_error\fR or raising \fBStopActorExecutionError\fR).
.SH "REPORTING BUGS"
Report bugs to bugzilla (\fIhttps://bugzilla.redhat.com\fR) under the `Red Hat Enterprise Linux 7` product and the `leapp-repository` component.
.SH "SEE ALSO"
.BR snactor (1)
More info available at \fIhttps://leapp.readthedocs.io/\fR.