old scripts to build image for libvirt

This commit is contained in:
2016-04-08 04:32:56 +02:00
parent f696480681
commit 5a6f30ec0f
7 changed files with 621 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
YYYYMMDD := $(shell date +%Y%m%d)
default: gen
clean:
rm -f *.bz2 *.qcow2 *.tmp authorized_keys
setup: clean
./detect-mirror.sh > ubuntu-mirror.tmp
cp $(HOME)/.ssh/id_rsa.pub ./authorized_keys
gen: setup
./gen.sh
upload:
rsync -avzP ./*.qcow2 \
$(KVM_REMOTE_HOST):/storage/images/
sync: clean
rsync -avP \
--exclude=/.git \
--exclude=/.vagrant \
./ \
$(KVM_REMOTE_HOST):/storage/buildimage/