Include the crio-wipe.service with crio
parent
6ed19fcd5d
commit
876e32eb69
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue