GithubHelp home page GithubHelp logo

Comments (7)

joshwilsdon avatar joshwilsdon commented on May 27, 2024

Daniel, can you confirm that this works if you change vmobj.zoneroot to vmobj.zonepath in /usr/vm/node_modules/VM.js? Sorry about that, I'll fix in our branch and talk to John tomorrow about whether we can get a new release built.

from smartos-live.

MerlinDMC avatar MerlinDMC commented on May 27, 2024

currently i can't compile SmartOS will try tomorrow if noone else goes for it

but i think it should be vmobj.zonepath + "/root" or just working_dir

from smartos-live.

joshwilsdon avatar joshwilsdon commented on May 27, 2024

You should be able to test without rebuilding by doing:

cp /usr/vm/node_modules/VM.js /var/tmp/VM.js
chmod 755 /var/tmp/VM.js
mount -F lofs /var/tmp/VM.js /usr/vm/node_modules/VM.js

and then editing the file.

from smartos-live.

joshwilsdon avatar joshwilsdon commented on May 27, 2024

You are correct (I just confirmed) the fix is to change to:

if (!found && path.existsSync(vmobj.zonepath + '/root/' + disk.path)) {

I've tested this here and committed to our internal repo. I'll ask tomorrow if we can get that bit pushed upstream asap.

from smartos-live.

jclulow avatar jclulow commented on May 27, 2024

I think it's probably better to use path.join, thus:

if (!found && path.existsSync(path.join(vmobj.zonepath, 'root', disk.path))) {

from smartos-live.

joshwilsdon avatar joshwilsdon commented on May 27, 2024

Good call. I've done it with path.join now. Thanks!

from smartos-live.

JohnSonnenschein avatar JohnSonnenschein commented on May 27, 2024

Pushed to smartos-live. I'll rebuild another iso/usbkey since this is a pretty major bug (makes it hard to provision vms without it)

from smartos-live.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.