Include the crio-wipe.service with crio

pull/5970/head
Anders F Björklund 2019-11-24 20:59:29 +01:00
parent 6ed19fcd5d
commit 876e32eb69
3 changed files with 26 additions and 2 deletions

View File

@ -64,6 +64,9 @@ define CRIO_BIN_INSTALL_INIT_SYSTEMD
$(INSTALL) -Dm644 \
$(CRIO_BIN_PKGDIR)/crio.service \
$(TARGET_DIR)/usr/lib/systemd/system/crio.service
$(INSTALL) -Dm644 \
$(CRIO_BIN_PKGDIR)/crio-wipe.service \
$(TARGET_DIR)/usr/lib/systemd/system/crio-wipe.service
$(call link-service,crio.service)
$(call link-service,crio-shutdown.service)
endef

View File

@ -0,0 +1,18 @@
[Unit]
Description=CRI-O Auto Update Script
Before=crio.service
RequiresMountsFor=/var/lib/containers
[Service]
EnvironmentFile=-/etc/sysconfig/crio
EnvironmentFile=-/etc/sysconfig/crio.minikube
EnvironmentFile=/var/run/minikube/env
ExecStart=/usr/bin/crio \
$CRIO_OPTIONS \
$CRIO_MINIKUBE_OPTIONS \
wipe
Type=oneshot
[Install]
WantedBy=multi-user.target

View File

@ -1,8 +1,11 @@
[Unit]
Description=Open Container Initiative Daemon
Documentation=https://github.com/kubernetes-sigs/cri-o
Description=Container Runtime Interface for OCI (CRI-O)
Documentation=https://github.com/cri-o/cri-o
Wants=network-online.target
After=network-online.target minikube-automount.service
Requires=minikube-automount.service
After=crio-wipe.service
Requires=crio-wipe.service
[Service]
Type=notify