Increase time limit of increment test problem
[gruntmaster-daemon.git] / makevm
CommitLineData
fdb99417
MG
1#!/bin/bash
2[ `id -u` -eq 0 ] || echo 'This script must be run as root' && exit 1
3rm -rf vm/ vm.squashfs
4multistrap -f vm.conf
5ln -s vm/usr/bin/mawk vm/bin/awk
6echo 'virtfs /mnt 9p trans=virtio,auto 0 0' > vm/etc/fstab
7echo '/sbin/poweroff -f' > vm/.bash_logout
8cat > vm/.profile <<EOF
9mount -a
10stty -F /dev/ttyS1 -echo
11cd /mnt
12export PS1="# "
13EOF
14cat > vm/etc/initramfs-tools/modules <<EOF
15squashfs
169p
179pnet
189pnet_virtio
19EOF
20cp gruntmaster-exec gruntmaster-compile vm/usr/bin/
21chroot vm update-initramfs -d -k 3.2.0-4-amd64
22chroot vm update-initramfs -c -k 3.2.0-4-amd64
23mksquashfs vm vm.squashfs -comp lzo
This page took 0.020612 seconds and 4 git commands to generate.