1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

resolve device name using libblkid

This commit is contained in:
sidharthamani
2015-02-11 22:48:32 -08:00
parent 925a847ccc
commit 34b3057909
4 changed files with 27 additions and 9 deletions

View File

@@ -217,13 +217,13 @@ func mountState(cfg *config.Config) error {
log.Debugf("State will not be persisted")
err = util.Mount("none", STATE, "tmpfs", "")
} else {
log.Debugf("Mounting state device %s to %s", cfg.StateDev, STATE)
log.Debugf("Mounting state device %s", cfg.StateDev)
err = util.Mount(cfg.StateDev, STATE, cfg.StateDevFSType, "")
}
//if err != nil {
return err
//}
if err != nil {
return err
}
//for _, i := range []string{"docker", "images"} {
// dir := path.Join(STATE, i)