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