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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user