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

Revolve device before performing cloud config mount

This commit is contained in:
Josh Curl
2016-06-15 14:20:06 -07:00
parent e98fc80d12
commit 445d35e33e

View File

@@ -221,7 +221,8 @@ func executeCloudConfig() error {
if len(configMount) != 4 {
log.Errorf("Unable to mount %s: must specify exactly four arguments", configMount[1])
}
if err := mount.Mount(configMount[0], configMount[1], configMount[2], configMount[3]); err != nil {
device := util.ResolveDevice(configMount[0])
if err := mount.Mount(device, configMount[1], configMount[2], configMount[3]); err != nil {
log.Errorf("Unable to mount %s: %s", configMount[1], err)
}
}