1
0
mirror of https://github.com/rancher/os.git synced 2025-09-08 10:11:46 +00:00

Switch to virtio

This commit is contained in:
Darren Shepherd
2015-02-16 20:52:48 -07:00
parent 6928140540
commit 47a9899b89
2 changed files with 5 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ func NewConfig() *Config {
ImagesPath: "/", ImagesPath: "/",
ImagesPattern: "images*.tar", ImagesPattern: "images*.tar",
StateRequired: false, StateRequired: false,
StateDev: "/dev/sda", StateDev: "/dev/vda",
StateDevFSType: "ext4", StateDevFSType: "ext4",
SysInit: "/sbin/init-sys", SysInit: "/sbin/init-sys",
SystemDockerArgs: []string{"docker", "-d", "-s", "overlay", "-b", "none"}, SystemDockerArgs: []string{"docker", "-d", "-s", "overlay", "-b", "none"},

View File

@@ -4,7 +4,6 @@ import (
"os" "os"
"os/exec" "os/exec"
"path" "path"
"syscall"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
dockerClient "github.com/fsouza/go-dockerclient" dockerClient "github.com/fsouza/go-dockerclient"
@@ -187,10 +186,10 @@ func sysInit() error {
initFuncs := []config.InitFunc{ initFuncs := []config.InitFunc{
loadImages, loadImages,
runContainers, runContainers,
func(cfg *config.Config) error { //func(cfg *config.Config) error {
syscall.Sync() // syscall.Sync()
return nil // return nil
}, //},
//launchConsole, //launchConsole,
} }