Changes
COPYING
+ex/makevm
+ex/runvm
+ex/vm.conf
gruntmaster-compile
gruntmaster-exec
gruntmasterd
lib/Gruntmaster/Daemon/Runner/Verifier.pm
log.conf
Makefile.PL
-makevm
MANIFEST
README
-runvm
t/00-compile.t
t/01-jobs.t
t/perlcriticrc
t/problems/square/tests/ac/meta.yml
t/problems/square/tests/ac/prog.cpp
t/problems/square/ver.cpp
-vm.conf
--- /dev/null
+#!/bin/bash
+[ `id -u` -eq 0 ] || echo 'This script must be run as root' && exit 1
+rm -rf vm/ vm.squashfs
+multistrap -f vm.conf
+ln -s vm/usr/bin/mawk vm/bin/awk
+echo 'virtfs /mnt 9p trans=virtio,auto 0 0' > vm/etc/fstab
+echo '/sbin/poweroff -f' > vm/.bash_logout
+cat > vm/.profile <<EOF
+mount -a
+stty -F /dev/ttyS1 -echo
+cd /mnt
+export PS1="# "
+EOF
+cat > vm/etc/initramfs-tools/modules <<EOF
+squashfs
+9p
+9pnet
+9pnet_virtio
+EOF
+cp gruntmaster-exec gruntmaster-compile vm/usr/bin/
+chroot vm update-initramfs -d -k 3.2.0-4-amd64
+chroot vm update-initramfs -c -k 3.2.0-4-amd64
+mksquashfs vm vm.squashfs -comp lzo
--- /dev/null
+#!/bin/bash
+ROOT=/home/marius/git/gruntmaster-daemon
+
+qemu-system-x86_64 \
+ -enable-kvm -cpu host -m 256MB \
+ -nodefaults -nographic \
+ -kernel $ROOT/vm/boot/vmlinuz-3.2.0-4-amd64 \
+ -initrd $ROOT/vm/boot/initrd.img-3.2.0-4-amd64 \
+ -append 'root=/dev/vda console=ttyS0,38400 quiet init=/bin/bash --login' \
+ -drive file=$ROOT/vm.squashfs,if=virtio,readonly \
+ -virtfs local,id=virtfs0,path=.,security_model=none,mount_tag=virtfs \
+ -chardev stdio,id=stdio,signal=on \
+ -chardev pipe,id=hostpipe,path=$1 \
+ -serial chardev:stdio \
+ -serial chardev:hostpipe
--- /dev/null
+[General]
+directory=vm/
+cleanup=true
+bootstrap=Debian
+aptsources=Debian
+
+[Debian]
+packages=linux-image-3.2.0-4-amd64 mawk libbsd-resource-perl libipc-signal-perl g++
+source=http://ftp.ro.debian.org/debian
+keyring=debian-archive-keyring
+suite=wheezy
+components=main
+omitdebsrc=true
+++ /dev/null
-#!/bin/bash
-[ `id -u` -eq 0 ] || echo 'This script must be run as root' && exit 1
-rm -rf vm/ vm.squashfs
-multistrap -f vm.conf
-ln -s vm/usr/bin/mawk vm/bin/awk
-echo 'virtfs /mnt 9p trans=virtio,auto 0 0' > vm/etc/fstab
-echo '/sbin/poweroff -f' > vm/.bash_logout
-cat > vm/.profile <<EOF
-mount -a
-stty -F /dev/ttyS1 -echo
-cd /mnt
-export PS1="# "
-EOF
-cat > vm/etc/initramfs-tools/modules <<EOF
-squashfs
-9p
-9pnet
-9pnet_virtio
-EOF
-cp gruntmaster-exec gruntmaster-compile vm/usr/bin/
-chroot vm update-initramfs -d -k 3.2.0-4-amd64
-chroot vm update-initramfs -c -k 3.2.0-4-amd64
-mksquashfs vm vm.squashfs -comp lzo
+++ /dev/null
-#!/bin/bash
-ROOT=/home/marius/git/gruntmaster-daemon
-
-qemu-system-x86_64 \
- -enable-kvm -cpu host -m 256MB \
- -nodefaults -nographic \
- -kernel $ROOT/vm/boot/vmlinuz-3.2.0-4-amd64 \
- -initrd $ROOT/vm/boot/initrd.img-3.2.0-4-amd64 \
- -append 'root=/dev/vda console=ttyS0,38400 quiet init=/bin/bash --login' \
- -drive file=$ROOT/vm.squashfs,if=virtio,readonly \
- -virtfs local,id=virtfs0,path=.,security_model=none,mount_tag=virtfs \
- -chardev stdio,id=stdio,signal=on \
- -chardev pipe,id=hostpipe,path=$1 \
- -serial chardev:stdio \
- -serial chardev:hostpipe
+++ /dev/null
-[General]
-directory=vm/
-cleanup=true
-bootstrap=Debian
-aptsources=Debian
-
-[Debian]
-packages=linux-image-3.2.0-4-amd64 mawk libbsd-resource-perl libipc-signal-perl g++
-source=http://ftp.ro.debian.org/debian
-keyring=debian-archive-keyring
-suite=wheezy
-components=main
-omitdebsrc=true