Skip to content

Commit ac08b5b

Browse files
Fix autoinstall partitions?
1 parent 882eb0a commit ac08b5b

1 file changed

Lines changed: 65 additions & 47 deletions

File tree

configs/autoinstall/head.yml

Lines changed: 65 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ autoinstall:
2727
# https://curtin.readthedocs.io/en/latest/topics/storage.html
2828
storage:
2929
config:
30-
# Wipe and partition the largest disk
30+
# DISKS
3131
- type: disk
3232
id: disk0
3333
match:
@@ -38,117 +38,135 @@ autoinstall:
3838
grub_device: false
3939

4040

41-
# Boot partition
41+
# PARTITIONS
42+
43+
## EFI at /boot/efi
4244
- type: partition
43-
id: boot-partition
45+
id: efi-partition
4446
number: 1
4547
size: 1G
4648
device: disk0
49+
flag: boot
4750
preserve: false
4851
grub_device: true
4952
wipe: superblock
5053

5154
- type: format
52-
id: boot-format
53-
fstype: ext4
54-
volume: boot-partition
55+
id: efi-format
56+
fstype: fat32
57+
volume: efi-partition
5558
preserve: false
5659

57-
- type: mount
58-
id: boot-mount
59-
path: /boot
60-
device: boot-format
61-
62-
63-
# EFI partition
60+
# boot at /boot
6461
- type: partition
65-
id: efi-partition
62+
id: boot-partition
6663
number: 2
67-
size: 512M
64+
size: 1G
6865
device: disk0
69-
flag: boot
7066
preserve: false
71-
grub_device: true
67+
grub_device: false
7268
wipe: superblock
7369

7470
- type: format
75-
id: efi-format
76-
fstype: fat32
71+
id: boot-format
72+
fstype: ext4
7773
volume: boot-partition
7874
preserve: false
7975

80-
- type: mount
81-
id: efi-mount
82-
path: /boot/efi
83-
device: efi-format
84-
85-
# Swap partition
76+
# Swap
8677
- type: partition
8778
id: swap-partition
8879
number: 3
8980
size: 8G
9081
device: disk0
9182
preserve: false
83+
grub_device: false
9284
wipe: superblock
9385

9486
- type: format
9587
id: swap-format
9688
fstype: swap
9789
volume: swap-partition
90+
preserve: false
9891

9992
# LVM physical volume
10093
- type: partition
101-
id: pv1
94+
id: pv0
10295
number: 4
103-
size: 900G
96+
size: 500G
10497
device: disk0
10598
preserve: false
99+
grub_device: false
106100
wipe: superblock
107101

108102
- type: lvm_volgroup
109-
id: vg1
110-
name: vg1
103+
id: vg0
104+
name: vg0
111105
devices:
112-
- pv1
106+
- pv0
107+
preserve: false
113108

114109
# Logical volumes
115110
- type: lvm_partition
116-
id: root-vg1
111+
id: root-lv
117112
name: root-lv
118-
volgroup: vg1
113+
volgroup: vg0
119114
size: 50G
120115
preserve: false
121116
wipe: superblock
122117

118+
- type: format
119+
id: root-format
120+
fstype: ext4
121+
volume: root-lv
122+
preserve: false
123+
124+
123125
- type: lvm_partition
124-
id: ihome-vg1
126+
id: ihome-lv
125127
name: ihome-lv
126-
volgroup: vg1
127-
size: 600G
128+
volgroup: vg0
129+
size: 350G
128130
preserve: false
129131
wipe: superblock
130132

133+
- type: format
134+
id: ihome-format
135+
fstype: ext4
136+
volume: ihome-lv
137+
preserve: false
138+
131139
- type: lvm_partition
132-
id: data-vg1
140+
id: data-lv
133141
name: data-lv
134-
volgroup: vg1
142+
volgroup: vg0
143+
size: 45G
135144
preserve: false
136145
wipe: superblock
137146

138147
- type: format
139-
id: root-format
148+
id: data-format
140149
fstype: ext4
141-
volume: root-vg1
150+
volume: data-lv
151+
preserve: false
142152

143-
- type: format
144-
id: ihome-format
145-
fstype: ext4
146-
volume: ihome-vg1
147153

148-
- type: format
149-
id: data-format
150-
fstype: ext4
151-
volume: data-vg1
154+
# MOUNTS
155+
156+
- type: mount
157+
id: efi-mount
158+
path: /boot/efi
159+
device: efi-format
160+
161+
- type: mount
162+
id: boot-mount
163+
path: /boot
164+
device: boot-format
165+
166+
- type: mount
167+
id: swap-mount
168+
path: ''
169+
device: swap-format
152170

153171
- type: mount
154172
id: root-mount

0 commit comments

Comments
 (0)