func rootIsShared() bool {
	if data, err := ioutil.ReadFile("/proc/self/mountinfo"); err == nil {
		for _, line := range strings.Split(string(data), "\n") {
			cols := strings.Split(line, " ")
			if len(cols) >= 6 && cols[4] == "/" {
				return strings.HasPrefix(cols[6], "shared")
			}
		}
	}

	// No idea, probably safe to assume so
	return true
}
// TODO: This can be moved to the mountinfo reader in the mount pkg
This can be moved to the mountinfo reader in the mount pkg
// TODO : This can be moved to the mountinfo reader in the mount pkg
func rootIsShared() bool {
	if data, err := ioutil.ReadFile("/proc/self/mountinfo"); err == nil {
		for _, line := range strings.Split(string(data), "\n") {
			cols := strings.Split(line, " ")
			if len(cols) >= 6 && cols[4] == "/" {
				return strings.HasPrefix(cols[6], "shared")
			}
		}
	}
	return true
}
func rootIsShared ( ) bool { if data , err := ioutil . ReadFile ( " " ) ; err == nil { for _ , line := range strings . Split ( string ( data ) , " \n " ) { cols := strings . Split ( line , " " ) if len ( cols ) >= 6 && cols [ 4 ] == " " { return strings . HasPrefix ( cols [ 6 ] , " " ) } } } return true }
This can be moved to the mountinfo reader in the mount pkg
This can be moved to the mountinfo reader in the mount pkg
// No idea, probably safe to assume so