max-mapper / HyperOS

A 50MB linux distribution that has dat-container for booting live containers on mac OS
120 stars 12 forks source link

Problem: `linux status` throws error if not booted once #7

Open julianpistorius opened 6 years ago

julianpistorius commented 6 years ago

Steps to reproduce:

npm install linux -g
linux init
linux status

Then I get this error:

/usr/local/lib/node_modules/linux/cli.js:232
      if (err) throw err
               ^

Error: ENOENT: no such file or directory, open '/Users/johndoe/some_project/linux/linux.pid'

Once I actually boot the VM for the first time it's fine:

$ sudo linux boot
Linux has booted { ip: '192.168.64.137',
  hostname: 'joe-pony-man-bearpig',
  pid: 1337 }
$ linux status
Linux is running { pid: 1337 }
julianpistorius commented 6 years ago

Sorry. Wrong repo. Will create ticket on https://github.com/maxogden/linux/ instead