generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorage.ign
81 lines (81 loc) · 3.1 KB
/
storage.ign
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
{
"ignition": {
"version": "3.4.0"
},
"passwd": {
"users": [
{
"name": "core",
"sshAuthorizedKeys": [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINo7E0oAOzaq0XvUHkWvZSC8u1XxX8dDCq3bSyK2BCen",
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRZVQ23ywGUy4PGssAVTlUt8a49FIpFDrW8VG2HWpqV",
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFNOwulpxhjCXIGvONU9WmOhdEHHb8Y7/Qa1mxTt9zLz"
]
}
]
},
"storage": {
"directories": [
{
"path": "/etc/ucore"
},
{
"path": "/etc/ucore-autorebase",
"mode": 492
}
],
"files": [
{
"path": "/var/lib/systemd/linger/core",
"mode": 493
},
{
"path": "/etc/hostname",
"contents": {
"compression": "",
"source": "data:,storage.feisar.ovh"
},
"mode": 420
},
{
"path": "/etc/systemd/resolved.conf.d/stub-listener.conf",
"contents": {
"compression": "",
"source": "data:,%5BResolve%5D%0ADNSStubListener%3Dno%0A"
}
}
]
},
"systemd": {
"units": [
{
"dropins": [
{
"contents": "[Service]\nTTYVTDisallocate=no\nExecStart=\nExecStart=-/usr/sbin/agetty --autologin core --noclear %I $TERM\n",
"name": "autologin.conf"
}
],
"name": "[email protected]"
},
{
"dropins": [
{
"contents": "[Service]\nExecStart=\nExecStart=-/usr/sbin/agetty --autologin core -o '-p -f core' --noclear %I $TERM\n",
"name": "autologin.conf"
}
],
"name": "[email protected]"
},
{
"contents": "[Unit]\nDescription=uCore autorebase to OCI unsigned image and reboot\nConditionPathExists=!/etc/ucore/%N.stamp\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nType=oneshot\nStandardOutput=journal+console\nRemainAfterExit=yes\nExecStartPre=/usr/bin/echo \"Rebasing to uCore OCI unsigned image\"\nExecStartPre=/usr/bin/sleep 5\nExecStart=/usr/bin/rpm-ostree rebase ostree-unverified-registry:ghcr.io/auricom/ucore-minimal:storage\nExecStartPost=/usr/bin/touch /etc/ucore/%N.stamp\nExecStartPost=/usr/bin/systemctl reboot\n\n[Install]\nWantedBy=multi-user.target",
"enabled": true,
"name": "ucore-autorebase.service"
},
{
"contents": "[Unit]\nDescription=uCore autorebase to OCI signed image and reboot\nConditionPathExists=!/etc/ucore/%N.stamp\nConditionPathExists=/etc/ucore/ucore-autorebase.stamp\nAfter=network-online.target\nWants=network-online.target\n\n[Service]\nType=oneshot\nStandardOutput=journal+console\nRemainAfterExit=yes\nExecStartPre=/usr/bin/echo \"Rebasing to uCore OCI signed image\"\nExecStartPre=/usr/bin/sleep 5\nExecStart=/usr/bin/rpm-ostree rebase ostree-image-signed:docker://ghcr.io/auricom/ucore-minimal:storage\nExecStartPost=/usr/bin/touch /etc/ucore/%N.stamp\nExecStartPost=/usr/bin/systemctl reboot\n\n[Install]\nWantedBy=multi-user.target",
"enabled": true,
"name": "ucore-autorebase-signed.service"
}
]
}
}