Update debian stretch to buster
This commit is contained in:
parent
751a4661b5
commit
b92561806e
6 changed files with 27 additions and 27 deletions
30
Makefile
30
Makefile
|
|
@ -20,7 +20,7 @@ qemu_network = 10.2.2.0
|
|||
qemu_netmask = 24
|
||||
qemu_vm_ip = 10.2.2.10
|
||||
qemu_disk = tmp/qemu-disk.img
|
||||
qemu_target ?= debian-stretch
|
||||
qemu_target ?= debian-buster
|
||||
qemu_kernel = $(qemu_target).linux
|
||||
qemu_torrent = $(qemu_target).torrent
|
||||
qemu_initramfs = $(shell \
|
||||
|
|
@ -33,7 +33,7 @@ fi \
|
|||
ci_environment=$(shell env | sed -n 's/^\(CI_.*\)=.*/-e \1/p')
|
||||
|
||||
.PHONY: default
|
||||
default: builderimg images/debian-stretch.squashfs
|
||||
default: builderimg images/debian-buster.squashfs
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
|
@ -52,7 +52,7 @@ images:
|
|||
[ ! -d "$@" ] && mkdir "$@"
|
||||
touch "$@"
|
||||
|
||||
images/debian-stretch.squashfs: images
|
||||
images/debian-buster.squashfs: images
|
||||
docker run \
|
||||
--rm \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
|
|
@ -67,9 +67,9 @@ images/debian-stretch.squashfs: images
|
|||
-e "COMPRESSION_LEVEL=$(COMPRESSION_LEVEL)" \
|
||||
$(ci_environment) \
|
||||
"$(DOCKER_IMAGE_BUILDER)" \
|
||||
debian-stretch
|
||||
debian-buster
|
||||
|
||||
images/debian-stretch.torrent: images
|
||||
images/debian-buster.torrent: images
|
||||
docker run \
|
||||
--rm \
|
||||
-v "${PWD}/images:/images" \
|
||||
|
|
@ -79,7 +79,7 @@ images/debian-stretch.torrent: images
|
|||
-e "WEBSEED=$(WEBSEED)" \
|
||||
-e "TASK=torrent" \
|
||||
"$(DOCKER_IMAGE_BUILDER)" \
|
||||
debian-stretch
|
||||
debian-buster
|
||||
|
||||
.PHONY: ansible
|
||||
ansible:
|
||||
|
|
@ -102,24 +102,24 @@ ansible:
|
|||
|
||||
# updates the initramfs
|
||||
# only used for development
|
||||
images/debian-stretch.initramfs.dev: tmp/initramfs-extracted/debian-stretch packer/initramfs/labsync
|
||||
cp packer/initramfs/labsync tmp/initramfs-extracted/debian-stretch/scripts/labsync
|
||||
(cd tmp/initramfs-extracted/debian-stretch && find . | cpio -H newc -o | gzip > $(CWD)/images/debian-stretch.initramfs.dev)
|
||||
images/debian-buster.initramfs.dev: tmp/initramfs-extracted/debian-buster packer/initramfs/labsync
|
||||
cp packer/initramfs/labsync tmp/initramfs-extracted/debian-buster/scripts/labsync
|
||||
(cd tmp/initramfs-extracted/debian-buster && find . | cpio -H newc -o | gzip > $(CWD)/images/debian-buster.initramfs.dev)
|
||||
|
||||
tmp:
|
||||
[ ! -d "$@" ] && mkdir "$@" || true
|
||||
|
||||
tmp/initramfs-extracted/debian-stretch: images/debian-stretch.initramfs
|
||||
rm -rf tmp/initramfs-extracted/debian-stretch
|
||||
mkdir -p tmp/initramfs-extracted/debian-stretch
|
||||
(cd tmp/initramfs-extracted/debian-stretch && zcat "$(CWD)/images/debian-stretch.initramfs" | cpio -i)
|
||||
touch tmp/initramfs-extracted/debian-stretch
|
||||
tmp/initramfs-extracted/debian-buster: images/debian-buster.initramfs
|
||||
rm -rf tmp/initramfs-extracted/debian-buster
|
||||
mkdir -p tmp/initramfs-extracted/debian-buster
|
||||
(cd tmp/initramfs-extracted/debian-buster && zcat "$(CWD)/images/debian-buster.initramfs" | cpio -i)
|
||||
touch tmp/initramfs-extracted/debian-buster
|
||||
|
||||
$(qemu_disk): tmp
|
||||
qemu-img create "$@" 20G
|
||||
|
||||
tmp/netboot.tar.gz: tmp
|
||||
wget -c -O "$@" https://cdn-aws.deb.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/netboot.tar.gz
|
||||
wget -c -O "$@" https://cdn-aws.deb.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/netboot.tar.gz
|
||||
touch "$@"
|
||||
|
||||
tmp/tftproot: tmp/netboot.tar.gz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue