]> git.proxmox.com Git - systemd.git/blame - man/systemd-gpt-auto-generator.8
Imported Upstream version 217
[systemd.git] / man / systemd-gpt-auto-generator.8
CommitLineData
14228c0d 1'\" t
5eef597e 2.TH "SYSTEMD\-GPT\-AUTO\-GENERATOR" "8" "" "systemd 217" "systemd-gpt-auto-generator"
14228c0d
MB
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"
60f067b4 23systemd-gpt-auto-generator \- Generator for automatically discovering and mounting root, /home and /srv partitions, as well as discovering and enabling swap partitions, based on GPT partition type GUIDs\&.
14228c0d
MB
24.SH "SYNOPSIS"
25.PP
26/usr/lib/systemd/system\-generators/systemd\-gpt\-auto\-generator
27.SH "DESCRIPTION"
28.PP
29systemd\-gpt\-auto\-generator
60f067b4
JS
30is a unit generator that automatically discovers root,
31/home,
32/srv
33and swap partitions and creates mount and swap units for them, based on the partition type GUIDs of GUID partition tables (GPT)\&. It implements the
34\m[blue]\fBDiscoverable Partitions Specification\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this generator has no effect on non\-GPT systems, on systems where the units are explicitly configured (for example, listed in
35\fBfstab\fR(5)), or where the mount points are non\-empty\&.
14228c0d 36.PP
60f067b4 37This generator will only look for root partitions on the same physical disk the EFI System Partition (ESP) is located on\&. It will only look for the other partitions on the same physical disk the root file system is located on\&. These partitions will not be searched on systems where the root file system is distributed on multiple disks, for example via btrfs RAID\&.
14228c0d 38.PP
60f067b4
JS
39systemd\-gpt\-auto\-generator
40is useful for centralizing file system configuration in the partition table and making manual configuration in
14228c0d
MB
41/etc/fstab
42or suchlike unnecessary\&.
43.PP
60f067b4
JS
44This generator looks for the partitions based on their partition type GUID\&. The following partition type GUIDs are identified:
45.sp
46.it 1 an-trap
47.nr an-no-space-flag 1
48.nr an-break-flag 1
49.br
50.B Table\ \&1.\ \&Partition Type GUIDs
51.TS
52allbox tab(:);
53lB lB lB.
54T{
55Partition Type GUID
56T}:T{
57Name
58T}:T{
59Explanation
60T}
61.T&
62l l l
63l l l
64l l l
65l l l
66l l l
67l l l
68l l l.
69T{
7044479540\-f297\-41b2\-9af7\-d131d5f0458a
71T}:T{
72Root Partition (x86)
73T}:T{
74On 32\-bit x86 systems, the first x86 root partition on the disk the EFI ESP is located on is mounted to the root directory /\&.
75T}
76T{
774f68bce3\-e8cd\-4db1\-96e7\-fbcaf984b709
78T}:T{
79Root Partition (x86\-64)
80T}:T{
81On 64\-bit x86 systems, the first x86\-64 root partition on the disk the EFI ESP is located on is mounted to the root directory /\&.
82T}
83T{
8469dad710\-2ce4\-4e3c\-b16c\-21a1d49abed3
85T}:T{
86Root Partition (32\-bit ARM)
87T}:T{
88On 32\-bit ARM systems, the first ARM root partition on the disk the EFI ESP is located on is mounted to the root directory /\&.
89T}
90T{
91b921b045\-1df0\-41c3\-af44\-4c6f280d3fae
92T}:T{
93Root Partition (64\-bit ARM)
94T}:T{
95On 64\-bit ARM systems, the first ARM root partition on the disk the EFI ESP is located on is mounted to the root directory /\&.
96T}
97T{
98933ac7e1\-2eb4\-4f13\-b844\-0e14e2aef915
99T}:T{
100Home Partition
101T}:T{
102The first home partition on the disk the root partition is located on is mounted to /home\&.
103T}
104T{
1053b8f8425\-20e0\-4f3b\-907f\-1a25a76f98e8
106T}:T{
107Server Data Partition
108T}:T{
109The first server data partition on the disk the root partition is located on is mounted to /srv\&.
110T}
111T{
1120657fd6d\-a4ab\-43c4\-84e5\-0933c84b4f4f
113T}:T{
114Swap
115T}:T{
116All swap partitions located on the disk the root partition is located on are enabled\&.
117T}
118.TE
119.sp 1
120.PP
121The
14228c0d 122/home
60f067b4
JS
123and
124/srv
125partitions may be encrypted in LUKS format\&. In this case a device mapper device is set up under the names
126/dev/mapper/home
127and
128/dev/mapper/srv\&. Note that this might create conflicts if the same partition is listed in
129/etc/crypttab
130with a different device mapper device name\&.
131.PP
132Also note that
133\fBsystemd-efi-boot-generator\fR(8)
134will mount the EFI System Partition (ESP) to
135/boot
136if not otherwise mounted\&.
137.PP
138When using this generator in conjunction with btrfs file systems, make sure to set the correct default subvolumes on them, using
139\fBbtrfs subvolume set\-default\fR\&.
14228c0d
MB
140.PP
141systemd\-gpt\-auto\-generator
142implements the
60f067b4 143\m[blue]\fBGenerator Specification\fR\m[]\&\s-2\u[2]\d\s+2\&.
14228c0d
MB
144.SH "SEE ALSO"
145.PP
146\fBsystemd\fR(1),
147\fBsystemd.mount\fR(5),
148\fBsystemd.swap\fR(5),
60f067b4 149\fBsystemd-fstab-generator\fR(8),
14228c0d 150\fBsystemd-efi-boot-generator\fR(8),
60f067b4
JS
151\fBsystemd-cryptsetup@.service\fR(8),
152\fBcryptsetup\fR(8),
153\fBfstab\fR(5),
154\fBbtrfs\fR(8)
14228c0d
MB
155.SH "NOTES"
156.IP " 1." 4
60f067b4
JS
157Discoverable Partitions Specification
158.RS 4
159\%http://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/
160.RE
161.IP " 2." 4
162Generator Specification
14228c0d
MB
163.RS 4
164\%http://www.freedesktop.org/wiki/Software/systemd/Generators
165.RE