From 3a8e830db2dcf98033c8bb4b828d0ab7a055f6e8 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Thu, 16 Feb 2023 21:32:23 -0800 Subject: cri-o: create /var/lib/crio crio.service now reports the following error messages: level=error msg="Writing clean shutdown supported file: \ open /var/lib/crio/clean.shutdown.supported: no such file or directory" level=error msg="Failed to sync parent directory of clean \ shutdown file: open /var/lib/crio: no such file or directory" Create /var/lib/crio to avoid such error message. Signed-off-by: Chen Qi Signed-off-by: Bruce Ashfield --- recipes-containers/cri-o/cri-o_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-containers/cri-o/cri-o_git.bb b/recipes-containers/cri-o/cri-o_git.bb index 5895274a..9467cf1f 100644 --- a/recipes-containers/cri-o/cri-o_git.bb +++ b/recipes-containers/cri-o/cri-o_git.bb @@ -96,6 +96,8 @@ do_install() { install -m 0644 ${S}/src/import/contrib/systemd/crio.service ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/src/import/contrib/systemd/crio-shutdown.service ${D}${systemd_unitdir}/system/ install -m 0644 ${S}/src/import/contrib/systemd/crio-wipe.service ${D}${systemd_unitdir}/system/ + + install -d ${D}${localstatedir}/lib/crio } FILES:${PN}-config = "${sysconfdir}/crio/config/*" -- cgit v1.2.3-54-g00ecf