From 814ea4ff8c0a394d62dd960c7e4a326d94e14614 Mon Sep 17 00:00:00 2001 From: Chad Auld Date: Thu, 9 Dec 2021 16:19:51 -0700 Subject: [PATCH 1/2] Update thinpool setup script in getting-started.md This script assumes the /var/lib/firecracker-containerd/snapshotter/devmapper directory exists. Adding a directory check/create if needed block. --- docs/getting-started.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index 46d9ec1da..370767305 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -167,6 +167,10 @@ set -ex DIR=/var/lib/firecracker-containerd/snapshotter/devmapper POOL=fc-dev-thinpool + +if [[ ! -d "${DIR}" ]]; then +mkdir -p "${DIR}" +fi if [[ ! -f "${DIR}/data" ]]; then touch "${DIR}/data" From 3b008f7480acd400f71cdaf9f22f16be7edb461e Mon Sep 17 00:00:00 2001 From: Chad Auld Date: Thu, 9 Dec 2021 16:19:51 -0700 Subject: [PATCH 2/2] Update thinpool setup script in getting-started.md Signed-off-by: Chad Auld This script assumes the /var/lib/firecracker-containerd/snapshotter/devmapper directory exists. Adding a directory check/create if needed block. --- docs/getting-started.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index 46d9ec1da..370767305 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -167,6 +167,10 @@ set -ex DIR=/var/lib/firecracker-containerd/snapshotter/devmapper POOL=fc-dev-thinpool + +if [[ ! -d "${DIR}" ]]; then +mkdir -p "${DIR}" +fi if [[ ! -f "${DIR}/data" ]]; then touch "${DIR}/data"