Skip to content

Commit

Permalink
host-ctr: update mounts to add modprobe
Browse files Browse the repository at this point in the history
  • Loading branch information
vigh-m committed May 30, 2024
1 parent 8ef185c commit a702957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sources/host-ctr/cmd/host-ctr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
})
}

Expand Down

0 comments on commit a702957

Please sign in to comment.