81fbde81fa96a9a3cd57506ff7314137955eff17
[gruntmaster-daemon.git] / ex / makevm
1 #!/bin/bash
2 rm -rf vm/ vm.squashfs
3 multistrap -f ex/vm.conf
4 ln -s vm/usr/bin/mawk vm/bin/awk
5 echo 'virtfs /mnt 9p trans=virtio,auto 0 0' > vm/etc/fstab
6 echo '/sbin/poweroff -f' > vm/.bash_logout
7 cat > vm/.profile <<EOF
8 mount -a
9 stty -F /dev/ttyS1 -echo
10 cd /mnt
11 export PS1="# "
12 EOF
13 cat > vm/etc/initramfs-tools/modules <<EOF
14 squashfs
15 9p
16 9pnet
17 9pnet_virtio
18 EOF
19 install gruntmaster-exec gruntmaster-compile vm/usr/bin/
20 chroot vm update-initramfs -d -k 3.2.0-4-amd64
21 chroot vm update-initramfs -c -k 3.2.0-4-amd64
22 mksquashfs vm vm.squashfs -comp lzo
This page took 0.022012 seconds and 4 git commands to generate.