Skip to content

Commit

Permalink
Merge pull request #20 from yuuki/fix/failed-to-mount-proc
Browse files Browse the repository at this point in the history
Fix that it failed to mount /proc when droot run twice
  • Loading branch information
yuuki authored Jul 13, 2017
2 parents c6552da + 95362df commit 61fdc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mounter/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func ResolveRootDir(dir string) (string, error) {

func (m *Mounter) MountSysProc() error {
// mount -t proc proc {{rootDir}}/proc
if err := osutil.MountIfNotMounted("/proc", fp.Join(m.rootDir, "/proc"), "proc", ""); err != nil {
if err := mount.Mount("proc", fp.Join(m.rootDir, "/proc"), "proc", "remount"); err != nil {
return errors.Errorf("Failed to mount /proc: %s", err)
}
// mount --rbind /sys {{rootDir}}/sys
Expand Down

0 comments on commit 61fdc01

Please sign in to comment.