Skip to content

Commit

Permalink
fix: ensure overlay loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
YTGhost committed Sep 13, 2022
1 parent 74be985 commit d472385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/mount/overlay2.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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 d472385

Please sign in to comment.