This commit is contained in:
nora 2024-09-15 21:49:33 +02:00
parent f0ffa77500
commit e82f2076b8
10 changed files with 329 additions and 5 deletions

View file

@ -6,9 +6,8 @@ cd "$(dirname "$0")"
target_tuple="$(uname -m)-unknown-linux-musl"
cargo build -p quarterdeck --target "$target_tuple"
cargo build -p cog --target "$target_tuple"
cargo build -p coreutils --target "$target_tuple"
cargo build --target "$target_tuple" \
-p quarterdeck -p cog -p coreutils -p tcpecho
target_dir="../target/$target_tuple/debug"
@ -25,6 +24,15 @@ install_bin quarterdeck
install_bin cog
install_bin net
install_bin ls
install_bin user
install_bin tcpecho
mkdir -p rootfs/etc
cp /etc/resolv.conf rootfs/etc/resolv.conf
mkdir -p rootfs/etc/services
cat > rootfs/etc/services/tcpecho2000.toml <<EOF
name = "tcpecho2000"
exec = [ "/bin/tcpecho", "0.0.0.0:2000" ]
EOF

View file

@ -10,4 +10,6 @@ exec bwrap \
--unshare-uts \
--unshare-cgroup \
--as-pid-1 \
--uid 1 \
--gid 1 \
/bin/quarterdeck