From a70295722441c49642bdcb8f6ecca9ac2103eea7 Mon Sep 17 00:00:00 2001 From: Vighnesh Maheshwari Date: Thu, 30 May 2024 02:54:12 +0000 Subject: [PATCH] host-ctr: update mounts to add modprobe --- sources/host-ctr/cmd/host-ctr/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sources/host-ctr/cmd/host-ctr/main.go b/sources/host-ctr/cmd/host-ctr/main.go index 7519baa4a5e..f9cb3804160 100644 --- a/sources/host-ctr/cmd/host-ctr/main.go +++ b/sources/host-ctr/cmd/host-ctr/main.go @@ -896,6 +896,12 @@ func withPrivilegedMounts() oci.SpecOpts { Source: "/mnt", Type: "bind", }, + { + Options: []string{"rbind", "ro"}, + Destination: "/sbin/modprobe", + Source: "/usr/bin/kmod", + Type: "bind", + }, }) }