-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path99-sfc-machineconfig.bu
75 lines (68 loc) · 1.97 KB
/
99-sfc-machineconfig.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# SPDX-License-Identifier: MIT
# Copyright (c) 2023 Advanced Micro Devices, Inc.
variant: openshift
version: SED_OPENSHIFT_VERSION
metadata:
name: 99-sfc-machineconfig
labels:
machineconfiguration.openshift.io/role: SED_NODE_TYPE
app.kubernetes.io/part-of: onload
systemd:
units:
- name: sfc-replace-kernel-module.service
enabled: true
contents: |
[Unit]
Description=Replace in-tree kernel module with oot kernel module
Before=network-pre.target
Wants=network-pre.target
DefaultDependencies=no
[Service]
User=root
Type=oneshot
TimeoutSec=10
ExecStartPre=ls /usr/local/bin
ExecStart=/usr/local/bin/sfc-replace-kernel-module.sh
PrivateTmp=yes
RemainAfterExit=no
TimeoutSec=60
Environment="ONLOAD_MODULE_IMAGE=SED_ONLOAD_MODULE_IMAGE"
[Install]
WantedBy=multi-user.target
- name: sfc-pull-image.service
enabled: true
contents: |
[Unit]
Description=Pull oot kernel module image
After=network-online.target
Wants=network-online.target
DefaultDependencies=no
[Service]
User=root
Type=oneshot
ExecStart=/usr/local/bin/sfc-pull-kernel-module-image.sh
PrivateTmp=yes
RemainAfterExit=no
TimeoutSec=900
Environment="ONLOAD_MODULE_IMAGE=SED_ONLOAD_MODULE_IMAGE"
[Install]
WantedBy=multi-user.target
- name: crio-wipe.service
enabled: false
mask: true
storage:
files:
- path: /usr/local/bin/sfc-replace-kernel-module.sh
mode: 0511
overwrite: true
user:
name: root
contents:
local: sfc-replace-kernel-module.sh
- path: /usr/local/bin/sfc-pull-kernel-module-image.sh
mode: 0493
overwrite: true
user:
name: root
contents:
local: sfc-pull-kernel-module-image.sh