Skip to content

Commit 4b0a88e

Browse files
DavidBuzatu-Marianustiugov
authored andcommitted
Added cleanup of stargz to cleanup script
Signed-off-by: David-Marian Buzatu <[email protected]> Signed-off-by: davidbuzatu-marian <[email protected]>
1 parent c74949d commit 4b0a88e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/github_runner/clean_cri_runner.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
PWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2626

2727
SANDBOX=$1
28+
USE_STARGZ=$2
2829

2930
if [ -z "$SANDBOX" ]; then
3031
SANDBOX="firecracker"
@@ -101,4 +102,16 @@ fi
101102
if [ "$SANDBOX" == "firecracker" ]; then
102103
echo Creating a fresh devmapper
103104
$PWD/../create_devmapper.sh
105+
fi
106+
107+
if [ -z "$USE_STARGZ" ]; then
108+
USE_STARGZ="no-stargz"
109+
fi
110+
111+
if [ "$USE_STARGZ" == "use-stargz" ]; then
112+
# Stop the stargz snapshotter
113+
sudo systemctl stop stargz-snapshotter
114+
sudo systemctl disable stargz-snapshotter
115+
sudo rm /etc/systemd/system/stargz-snapshotter.service
116+
sudo systemctl daemon-reload
104117
fi

0 commit comments

Comments
 (0)