1
0

Generate images for trusty, xenial, bionic

This commit is contained in:
dump_stack() 2018-10-06 18:21:58 +00:00
parent a06ccea904
commit 153b556bc5

View File

@ -10,8 +10,11 @@ Vagrant.configure("2") do |config|
mkdir qemu-debian-img && cd qemu-debian-img mkdir qemu-debian-img && cd qemu-debian-img
cp /vagrant/main.go ./ cp /vagrant/main.go ./
GOBIN=/usr/bin go get ./ GOBIN=/usr/bin go get ./
qemu-debian-img generate --repository="http://archive.ubuntu.com/ubuntu" --release="bionic" bionic.img export REPO=http://archive.ubuntu.com/ubuntu
cp bionic.img /vagrant/ for RELEASE in trusty xenial bionic; do \
qemu-debian-img generate --repository=$REPO --release=$RELEASE $RELEASE.img
cp $RELEASE.img /vagrant/
done
cp /boot/vmlinuz-* /vagrant/vmlinuz-bionic cp /boot/vmlinuz-* /vagrant/vmlinuz-bionic
cp /boot/initrd* /vagrant/initrd-bionic cp /boot/initrd* /vagrant/initrd-bionic
cp /lib/modules/`uname -r`/kernel/lib/test_static_key_base.ko /vagrant/sample.ko cp /lib/modules/`uname -r`/kernel/lib/test_static_key_base.ko /vagrant/sample.ko