Skip to content

Commit

Permalink
well that was kinda dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
shinohara-rin committed May 3, 2024
1 parent dc465f0 commit d5f3fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31116,9 +31116,10 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey)
};

function setup_sshkey(pubkey, qemu_process) {
const pubkeyContent = fs.readFileSync(pubkey, { encoding: "utf-8" });
show_message("info", "Setting up SSH key for QEMU");
qemu_process.stdin.write("root\n");
qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkey}"\n`);
qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkeyContent}"\n`);
}

function ensure_install_deps() {
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,10 @@ function start_vm(qemu_version, os, cpu, arch, bios, machine, filename, pubkey)
};

function setup_sshkey(pubkey, qemu_process) {
const pubkeyContent = fs.readFileSync(pubkey, { encoding: "utf-8" });
show_message("info", "Setting up SSH key for QEMU");
qemu_process.stdin.write("root\n");
qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkey}"\n`);
qemu_process.stdin.write(`cat > /root/.ssh/authorized_keys <<<"${pubkeyContent}"\n`);
}

function ensure_install_deps() {
Expand Down

0 comments on commit d5f3fce

Please sign in to comment.