Skip to content

Commit

Permalink
Revert "Merge pull request #202 from gustavosbarreto/unshare_mount"
Browse files Browse the repository at this point in the history
This reverts commit bbff592, reversing
changes made to 3285b46.
  • Loading branch information
gustavosbarreto authored and otavio committed Jun 22, 2018
1 parent 14dbccd commit 4a8800c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions cmd/updatehub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"os"
"path"
"path/filepath"
"syscall"

"github.com/pkg/errors"

Expand Down Expand Up @@ -78,18 +77,6 @@ func main() {
log.SetLevel(logrus.DebugLevel)
}

// enter in a new mount NS for isolating changes to the mount table
if err := syscall.Unshare(syscall.CLONE_NEWNS); err != nil {
log.Fatalf("failed to enter private mount NS: %s", err)
os.Exit(1)
}

err = syscall.Mount("", "/", "updatehub", syscall.MS_REC|syscall.MS_SLAVE, "")
if err != nil {
log.Fatalf("failed to mark rootfs as rslave: %s", err)
os.Exit(1)
}

osFs := afero.NewOsFs()
settings := &updatehub.Settings{}

Expand Down

0 comments on commit 4a8800c

Please sign in to comment.