Skip to content

Commit

Permalink
fix: ensure overlay loaded
Browse files Browse the repository at this point in the history
Signed-off-by: HIHIA <[email protected]>
  • Loading branch information
YTGhost committed Sep 13, 2022
1 parent 74be985 commit e626a9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/mount/overlay2.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package mount
import (
"fmt"
"os"
"os/exec"
"path"
"strings"
"syscall"
Expand All @@ -45,6 +46,7 @@ func NewMountDriver() Interface {
}

func supportsOverlay() (flag bool) {
_ = exec.Command("modprobe", "overlay").Run()
content, err := os.ReadFile("/proc/filesystems")
if err != nil {
return false
Expand Down

0 comments on commit e626a9b

Please sign in to comment.