-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuser-data
More file actions
115 lines (102 loc) · 2.52 KB
/
user-data
File metadata and controls
115 lines (102 loc) · 2.52 KB
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
#cloud-config
autoinstall:
version: 1
interactive-sections:
- network
locale: en_GB.UTF-8
keyboard:
layout: gb
timezone: Europe/London
ssh:
allow-pw: false
install-server: false
packages:
- htop
- p7zip-full
package_update: true
package_upgrade: true
#package_reboot_if_required: true
# Write script to /var/lib/cloud/scripts/per-once and then
# this will get executed on first boot, or per-boot for every boot
user-data:
disable_root: false
resize_rootfs: false
identity:
hostname: ubuntu-00
password: "$6$svbEVZfFcJ/cG$aeDYWh6vvELEscDhhzdq.J8yKJgYTnI2ni9tVH3bp7LZBUZ3lvmN.wQFBsuqQ/kI5rwJr3qfSLIrToihE0Xkz/" # LetSleepingCatsLie!
username: ubuntu # root doesn't work
# https://discourse.ubuntu.com/t/please-test-autoinstalls-for-20-04/15250/81
# https://curtin.readthedocs.io/_/downloads/en/stable/pdf/
swap:
size: 0
storage:
version: 1
swap:
size: 0
config:
- id: vda
type: disk
ptable: gpt
name: main_disk
path: /dev/vda
grub_device: true
- id: vda1
type: partition
size: 1MB
device: vda
flag: bios_grub
- id: vda2
type: partition
size: 15GB
device: vda
flag: boot
- id: vda3
type: partition
size: 5GB
device: vda
- id: vda4
type: partition
size: 4G
flag: swap
device: vda
- id: vda5
type: partition
size: -1
device: vda
- id: vda2_root
type: format
fstype: ext4
volume: vda2
- id: vda3_tmp
type: format
fstype: ext4
volume: vda3
- id: vda4_swap
type: format
fstype: swap
volume: vda4
- id: vda5_home
type: format
fstype: ext4
volume: vda5
- id: vda2_mount
type: mount
path: /
device: vda2_root
- id: vda3_mount
type: mount
path: /tmp
device: vda3_tmp
- id: vda5_mount
type: mount
path: /home
device: vda5_home
- id: vda4_mount
type: mount
device: vda4_swap
path: none
late-commands:
- "cp /cdrom/root-scripts/take-user-input.service /target/lib/systemd/system/"
- "ln -s /target/lib/systemd/system/take-user-input.service /target/etc/systemd/system/multi-user.target.wants/take-user-input.service"
- "cp /cdrom/root-scripts/test.sh /target/root/"
- "chmod +x /target/root/test.sh"