Add javascript
[gruntmaster-daemon.git] / ex / makevm
CommitLineData
fdb99417 1#!/bin/bash
fdb99417 2rm -rf vm/ vm.squashfs
2a6db364
MG
3mkdir -p vm/proc/
4mount /proc -o bind vm/proc
e6b9e086 5multistrap -f ex/vm.conf
fdb99417 6ln -s vm/usr/bin/mawk vm/bin/awk
fdb99417 7cat > vm/.profile <<EOF
3dc5f36d
MG
8mount -t 9p -o trans=virtio virtfs /mnt
9mount -t ramfs ramfs /tmp
10mount -t proc proc /proc
11mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
12echo ':jar:M::PK\x03\x04::/usr/bin/jexec:' > /proc/sys/fs/binfmt_misc/register
fa6276b8 13[ -e /dev/ttyS1 ] && stty -F /dev/ttyS1 raw -echo
fdb99417
MG
14cd /mnt
15export PS1="# "
16EOF
6f7e6b07
MG
17cat >> vm/etc/sudoers <<EOF
18Defaults>nobody closefrom=5
19Defaults>nobody !env_check
20Defaults>nobody env_keep="ONLINE_JUDGE PATH HOME"
21EOF
df00c00b 22install gruntmaster-exec gruntmaster-compile vm/usr/bin/
2a6db364 23umount vm/proc
fdb99417 24mksquashfs vm vm.squashfs -comp lzo
This page took 0.013835 seconds and 5 git commands to generate.