summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2019-07-10 17:06:49 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2019-07-10 18:54:35 +0200
commit2160bb2351cd66639b50ff13764bb7b1442533bb (patch)
treed01045e30940e32c8c8857a6c4cd98488e250b27 /pkg
parent2266edbebd05fe9f386891d796103367fc7ea43a (diff)
[feat] add debug info to bitmask-root call
Diffstat (limited to 'pkg')
-rw-r--r--pkg/standalone/launcher_linux.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/standalone/launcher_linux.go b/pkg/standalone/launcher_linux.go
index 763f742..39355c9 100644
--- a/pkg/standalone/launcher_linux.go
+++ b/pkg/standalone/launcher_linux.go
@@ -191,9 +191,11 @@ func runBitmaskRoot(arg ...string) error {
}
arg = append([]string{bitmaskRoot}, arg...)
- cmd := exec.Command("pkexec", arg...)
- err = cmd.Run()
+ out, err := exec.Command("pkexec", arg...).Output()
if err != nil {
+ log.Println("Error while running bitmask-root:")
+ log.Println("args: ", arg)
+ log.Println("output: ", string(out))
return err
}
return nil