From 06a688a3f91815ebdad363df7a66121f3d37df24 Mon Sep 17 00:00:00 2001 From: Yiyao Yu Date: Mon, 22 May 2023 18:31:09 -0700 Subject: [PATCH] Auto load overlay kernel module for apptainer --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 7af33c4..90810b9 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,7 @@ app-run: @test -e p4iab.sif \ || (echo Cannot find p4iab.sif, has it been built yet? 1>&2 \ && false) + @lsmod | grep overlay > /dev/null || sudo modprobe overlay @sudo $(APPTAINER) run --allow-setuid --overlay "$(OVERLAY_DIR)" \ -B "$(SHARED_DIR):/home/p4/shared" p4iab.sif