tune vm build

This commit is contained in:
j 2017-11-07 23:10:03 +01:00
parent 0018193ca1
commit 7cbb46458a
3 changed files with 13 additions and 3 deletions

View File

@ -5,7 +5,7 @@ Create virtual disk of pan.do/ra
Pan.do/ra VM are based on cloud images. Pan.do/ra VM are based on cloud images.
You also qemu to run the vm and virtualbox to convert the image You also qemu to run the vm and virtualbox to convert the image
apt-get install vmdebootstrap virtualbox qemu qemu-utils apt-get install virtualbox qemu qemu-utils
apt-get install kvm cloud-utils apt-get install kvm cloud-utils

View File

@ -7,8 +7,12 @@ TARGET=${BASE}/pandora-r${VERSION}.vdi
img=xenial-server-cloudimg-amd64-disk1.img img=xenial-server-cloudimg-amd64-disk1.img
test -e $img || curl -O https://cloud-images.ubuntu.com/xenial/current/$img if [ ! -e $img ]; then
cp --reflink=always $img ${TARGET}.img echo downloading $img
curl -s -O https://cloud-images.ubuntu.com/xenial/current/$img
fi
echo preparing ${TARGET}.img
cp -a $img ${TARGET}.img
cloud-localds seed.img cloud-config cloud-localds seed.img cloud-config
qemu-img resize ${TARGET}.img +998G qemu-img resize ${TARGET}.img +998G

View File

@ -272,4 +272,10 @@ set showmode
set lcs=tab:→·,trail:·,nbsp:˽ set lcs=tab:→·,trail:·,nbsp:˽
set list set list
if has('mouse')
set mouse=
endif
EOF EOF
if [ -e /usr/share/vim/vim80/defaults.vim ]; then
sed -i 's/ set mouse=a/" set mouse=a/g' /usr/share/vim/vim80/defaults.vim
fi