Better ephemeral workspace support with Codespaces

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Arthur Silva Sens
2021-09-30 20:53:15 +00:00
committed by GitHub
parent b65faa6a55
commit 6239bc017a
11 changed files with 64 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -xeuo pipefail
script_dirname="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
outdir="${script_dirname}/_output"
sudo qemu-system-x86_64 -kernel "/boot/vmlinuz" \
-boot c -m 3073M -hda "${outdir}/rootfs/hirsute-server-cloudimg-amd64.img" \
-net user \
-smp 8 \
-append "root=/dev/sda rw console=ttyS0,115200 acpi=off nokaslr" \
-nic user,hostfwd=tcp::2222-:22,hostfwd=tcp::6443-:6443 \
-serial mon:stdio -display none