Merge pull request #576 from crosbymichael/revert-sysmounts
Do not prevent mounts in /sys
This commit is contained in:
commit
2a94c82423
|
@ -215,7 +215,6 @@ func checkMountDestination(rootfs, dest string) error {
|
|||
}
|
||||
invalidDestinations := []string{
|
||||
"/proc",
|
||||
"/sys",
|
||||
}
|
||||
for _, invalid := range invalidDestinations {
|
||||
path, err := filepath.Rel(filepath.Join(rootfs, invalid), dest)
|
||||
|
|
|
@ -15,8 +15,8 @@ func TestCheckMountDestOnProc(t *testing.T) {
|
|||
func TestCheckMountDestInSys(t *testing.T) {
|
||||
dest := "/rootfs//sys/fs/cgroup"
|
||||
err := checkMountDestination("/rootfs", dest)
|
||||
if err == nil {
|
||||
t.Fatal("destination inside proc should return an error")
|
||||
if err != nil {
|
||||
t.Fatal("destination inside /sys should not return an error")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue