aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tests/guest-init.sh
blob: 676bbb09a008e2c3dc038482e4df4cb9dccbc624 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
export PATH="/tools:/sbin:/bin"
/bin/busybox ln -sf / /usr
/bin/busybox --install -s
mkdir /run /proc /tmp /sys /var /dev
ln -s /run /var/run
mount -t tmpfs none /run
mount -t tmpfs none /tmp
mount -t sysfs none /sys
mount -t proc none /proc
mount -t devtmpfs none /dev
ln -s /proc/self/fd /dev/fd
/wireguard/tests/netns.sh --no-module-insert && touch /wg-netns-success
echo o > /proc/sysrq-trigger
sleep 10000000000