From: Marius Gavrilescu Date: Thu, 22 Jan 2015 22:20:36 +0000 (+0200) Subject: Move vm scripts to ex/ X-Git-Tag: 5999.000_005~94 X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=commitdiff_plain;h=ce89d37fb1bd2aeeb41ed648afa81489ca823e71;hp=92d74efaca6a922fd3581131de03f332fc6bf2ca Move vm scripts to ex/ --- diff --git a/MANIFEST b/MANIFEST index f298b65..8ba39c9 100644 --- a/MANIFEST +++ b/MANIFEST @@ -1,5 +1,8 @@ Changes COPYING +ex/makevm +ex/runvm +ex/vm.conf gruntmaster-compile gruntmaster-exec gruntmasterd @@ -19,10 +22,8 @@ lib/Gruntmaster/Daemon/Runner/Interactive.pm lib/Gruntmaster/Daemon/Runner/Verifier.pm log.conf Makefile.PL -makevm MANIFEST README -runvm t/00-compile.t t/01-jobs.t t/perlcriticrc @@ -97,4 +98,3 @@ t/problems/square/meta.yml t/problems/square/tests/ac/meta.yml t/problems/square/tests/ac/prog.cpp t/problems/square/ver.cpp -vm.conf diff --git a/ex/makevm b/ex/makevm new file mode 100755 index 0000000..433370f --- /dev/null +++ b/ex/makevm @@ -0,0 +1,23 @@ +#!/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 < vm/etc/initramfs-tools/modules < vm/etc/fstab -echo '/sbin/poweroff -f' > vm/.bash_logout -cat > vm/.profile < vm/etc/initramfs-tools/modules <