hid: implemented image mount/unmount
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
"os/exec"
|
||||
"rkkvm/config"
|
||||
"sync"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
@@ -26,7 +25,7 @@ type ExtProcess struct {
|
||||
func Init(path string, args []string) *ExtProcess {
|
||||
return &ExtProcess{
|
||||
args: args,
|
||||
path: config.RootFS + path,
|
||||
path: path,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ package stream
|
||||
import (
|
||||
"log"
|
||||
"os/exec"
|
||||
"rkkvm/config"
|
||||
"strings"
|
||||
"sync"
|
||||
"syscall"
|
||||
@@ -29,7 +28,7 @@ func InitPipedCmd(cmds []string) *PipedCmd {
|
||||
continue
|
||||
}
|
||||
cmdArgs := strings.Split(cmd, " ")
|
||||
pipedCmds[i] = exec.Command(config.RootFS+"/"+cmdArgs[0], cmdArgs[1:]...)
|
||||
pipedCmds[i] = exec.Command(cmdArgs[0], cmdArgs[1:]...)
|
||||
}
|
||||
|
||||
pipedCmd = &PipedCmd{
|
||||
|
||||
Reference in New Issue
Block a user