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