3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id="systemd-hibernate-resume-generator" conditional='ENABLE_HIBERNATE'
7 xmlns:xi="http://www.w3.org/2001/XInclude">
10 <title>systemd-hibernate-resume-generator</title>
11 <productname>systemd</productname>
15 <refentrytitle>systemd-hibernate-resume-generator</refentrytitle>
16 <manvolnum>8</manvolnum>
20 <refname>systemd-hibernate-resume-generator</refname>
21 <refpurpose>Unit generator for resume= kernel parameter</refpurpose>
25 <para><filename>/usr/lib/systemd/system-generators/systemd-hibernate-resume-generator</filename></para>
29 <title>Description</title>
31 <para><command>systemd-hibernate-resume-generator</command> is a generator that initiates the procedure
32 to resume the system from hibernation. When <option>resume=</option> kernel command line option or
33 <varname>HibernateLocation</varname> EFI variable is detected, it enables the
34 <citerefentry><refentrytitle>systemd-hibernate-resume.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
35 unit, which will instruct the kernel to resume the system from the hibernation image.</para>
39 <title>Kernel Command Line</title>
41 <para><filename>systemd-hibernate-resume-generator</filename>
42 understands the following kernel command line parameters:</para>
44 <variablelist class='kernel-commandline-options'>
47 <term><varname>resume=</varname></term>
49 <listitem><para>Takes a path to the resume device. Both
50 persistent block device paths like
51 <filename index="false">/dev/disk/by-foo/bar</filename> and
52 <citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>-style
53 specifiers like <literal>FOO=bar</literal> are
56 <xi:include href="version-info.xml" xpointer="v217"/></listitem>
60 <term><varname>resume_offset=</varname></term>
62 <listitem><para>Takes the page offset of the swap space from the resume device.
63 Defaults to <literal>0</literal>.</para>
65 <xi:include href="version-info.xml" xpointer="v254"/></listitem>
69 <term><varname>resumeflags=</varname></term>
71 <listitem><para>Takes the resume device mount options to
72 use. Defaults <varname>rootflags=</varname> if not specified.</para>
74 <xi:include href="version-info.xml" xpointer="v243"/></listitem>
78 <term><varname>noresume</varname></term>
80 <listitem><para>Do not try to resume from hibernation. If this parameter is
81 present, <varname>resume=</varname> is ignored.</para>
83 <xi:include href="version-info.xml" xpointer="v240"/></listitem>
89 <title>See Also</title>
91 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
92 <citerefentry><refentrytitle>systemd-hibernate-resume.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
93 <citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry>