Skip to content

Commit

Permalink
OS-3138 fix mdata-client in LX zones.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwilsdon committed Jun 26, 2014
1 parent 8bb0e84 commit 8ab8e30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion overlay/generic/usr/lib/brand/lx/statechange
Expand Up @@ -30,6 +30,6 @@ jst_simplefs="yes"
# jst_showsnap="yes"

# Where does the mdata socket live?
jst_mdatapath="/.zonecontrol/"
jst_mdatapath="/native/.zonecontrol/"

. /usr/lib/brand/jcommon/statechange
8 changes: 7 additions & 1 deletion src/vm/lib/metadata/agent.js
Expand Up @@ -339,7 +339,13 @@ function (zonename, callback) {
var zlog = self.zlog[zonename];
var zonePath = self.zones[zonename].zonepath;
var localpath = '/.zonecontrol';
var zonecontrolpath = path.join(zonePath, 'root', localpath);
var zonecontrolpath;

if (self.zones[zonename].brand === 'lx') {
localpath = '/native' + localpath;
}

zonecontrolpath = path.join(zonePath, 'root', localpath);

zlog.info('Starting socket server');

Expand Down

0 comments on commit 8ab8e30

Please sign in to comment.