generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorage-remote.bu
60 lines (55 loc) · 1.69 KB
/
storage-remote.bu
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
variant: fcos
version: 1.5.0
passwd:
users:
- name: core
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINo7E0oAOzaq0XvUHkWvZSC8u1XxX8dDCq3bSyK2BCen
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRZVQ23ywGUy4PGssAVTlUt8a49FIpFDrW8VG2HWpqV
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFNOwulpxhjCXIGvONU9WmOhdEHHb8Y7/Qa1mxTt9zLz
storage:
directories:
# Stamp directory
- path: /etc/ucore
- path: /etc/ucore-autorebase
mode: 0754
files:
# Enable lingering for core
- path: /var/lib/systemd/linger/core
mode: 0755
# Hostname
- path: /etc/hostname
mode: 0644
contents:
inline: storage-remote.feisar.ovh
# Turn off Stub Listener for systemd-resolved
- path: /etc/systemd/resolved.conf.d/stub-listener.conf
contents:
inline: |
[Resolve]
DNSStubListener=no
systemd:
units:
# Autologin on Console
- name: [email protected]
dropins:
- name: autologin.conf
contents: |
[Service]
TTYVTDisallocate=no
ExecStart=
ExecStart=-/usr/sbin/agetty --autologin core --noclear %I $TERM
- name: [email protected]
dropins:
- name: autologin.conf
contents: |
[Service]
ExecStart=
ExecStart=-/usr/sbin/agetty --autologin core -o '-p -f core' --noclear %I $TERM
# Ucore initial setup
- name: ucore-autorebase.service
contents_local: systemd/ucore-autorebase.storage-remote.service
enabled: true
- name: ucore-autorebase-signed.service
contents_local: systemd/ucore-autorebase-signed.storage-remote.service
enabled: true