Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hyperkit #30

Merged
merged 5 commits into from
Jun 14, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove unused vars
  • Loading branch information
gjabell committed Jun 14, 2019
commit e57c689d856ddfc8d92daf50f08045896a616356
3 changes: 1 addition & 2 deletions lib/commands/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const build = require('../build');
const env = require('../env');
const { providerArg } = require('../args');

const { pubkey, privkey } = env.vars();
const { pubkey } = env.vars();

exports.command = 'build [path]';
exports.desc = 'Build a new microkernel';
Expand Down Expand Up @@ -52,7 +52,6 @@ exports.handler = async argv => {
nocache: !cache,
buildargs: {
'SSHPUBKEY': pubkey,
'SSHPRIVKEY': privkey,
'PKGS': pkgs
}
}
Expand Down
2 changes: 0 additions & 2 deletions lib/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class Env {
await fs.chmod(path.join(slimdir, 'baker_rsa'), '600', () => {});

this.pubkey = fs.readFileSync(path.join(scriptdir, 'scripts', 'keys', 'baker.pub')).toString();
this.privkey = fs.readFileSync(path.join(scriptdir, 'scripts', 'keys', 'baker_rsa')).toString();


return this;
Expand All @@ -48,7 +47,6 @@ class Env {
registry: registry,
scriptdir: scriptdir,
pubkey: this.pubkey,
privkey: this.privkey,
env: this,
}
}
Expand Down