Put /dev/ttyS1 into raw mode in ex/makevm
[gruntmaster-daemon.git] / ex / makevm
... / ...
CommitLineData
1#!/bin/bash
2rm -rf vm/ vm.squashfs
3mkdir -p vm/proc/
4mount /proc -o bind vm/proc
5multistrap -f ex/vm.conf
6ln -s vm/usr/bin/mawk vm/bin/awk
7cat > vm/.profile <<EOF
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
13[ -e /dev/ttyS1 ] && stty -F /dev/ttyS1 raw -echo
14cd /mnt
15export PS1="# "
16EOF
17cat >> vm/etc/sudoers <<EOF
18Defaults>nobody closefrom=5
19Defaults>nobody !env_check
20Defaults>nobody env_keep="ONLINE_JUDGE PATH HOME"
21EOF
22install gruntmaster-exec gruntmaster-compile vm/usr/bin/
23umount vm/proc
24mksquashfs vm vm.squashfs -comp lzo
This page took 0.00835 seconds and 4 git commands to generate.