1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 06:59:12 +00:00

Work arounds

This commit is contained in:
Darren Shepherd
2021-06-27 00:14:52 -07:00
parent 24e676d156
commit 2072aaad9c
7 changed files with 59 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=cOS system early rootfs setup
DefaultDependencies=no
After=initrd-root-fs.target
Requires=initrd-root-fs.target
Conflicts=initrd-switch-root.target
[Service]
Type=oneshot
ExecStartPre=/usr/bin/ln -sf -t / /sysroot/system
ExecStart=/usr/bin/cos-setup rootfs
[Install]
RequiredBy=initrd-fs.target

View File

@@ -0,0 +1,22 @@
[Unit]
Description=Rancher Bootstrap
Documentation=https://github.com/rancher/rancherd
Wants=network-online.target
After=network-online.target
[Install]
WantedBy=multi-user.target
[Service]
Type=oneshot
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
KillMode=process
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
ExecStart=/usr/bin/rancherd bootstrap