Only update problem statuses for non-private problems
[gruntmaster-daemon.git] / ex / makevm
CommitLineData
fdb99417 1#!/bin/bash
5cb2e97f
MG
2GROUP=$(getent group www-data | cut -f3 -d:)
3USER=$(getent passwd www-data | cut -f3 -d:)
4
fdb99417 5rm -rf vm/ vm.squashfs
e6b9e086 6multistrap -f ex/vm.conf
fdb99417
MG
7ln -s vm/usr/bin/mawk vm/bin/awk
8echo 'virtfs /mnt 9p trans=virtio,auto 0 0' > vm/etc/fstab
9echo '/sbin/poweroff -f' > vm/.bash_logout
10cat > vm/.profile <<EOF
11mount -a
12stty -F /dev/ttyS1 -echo
13cd /mnt
14export PS1="# "
15EOF
16cat > vm/etc/initramfs-tools/modules <<EOF
17squashfs
189p
199pnet
209pnet_virtio
21EOF
df00c00b 22install gruntmaster-exec gruntmaster-compile vm/usr/bin/
5cb2e97f 23sed -i -e "s/setgid 65534/setgid $GROUP/" -e "s/setuid 65534/setuid $USER/" vm/usr/bin/gruntmaster-exec
fdb99417
MG
24chroot vm update-initramfs -d -k 3.2.0-4-amd64
25chroot vm update-initramfs -c -k 3.2.0-4-amd64
26mksquashfs vm vm.squashfs -comp lzo
This page took 0.010406 seconds and 4 git commands to generate.