First commit, livebox without installer entry

This commit is contained in:
Ansible Benutzer 2023-09-04 15:30:10 +02:00
commit 790f0327ca
64 changed files with 931 additions and 0 deletions

View file

@ -0,0 +1,32 @@
#!/usr/bin/bash
#
# build live images and copy kernel, initramfs and squashfs
#
set -eu
BUILDD="{{ build_dir }}"
run_build(){
local DEST="/var/lib/tftpboot/d-i/n-live/$1/live/"
cd "$BUILDD/$1"
[[ -d "$DEST" ]] || mkdir -vp "$DEST"
lb clean && lb config && lb build
for FILE in vmlinuz initrd.img filesystem.squashfs ; do
ln -vf "$BUILDD/$1/binary/live/$FILE" "$DEST"
done
}
## main:
if ! auto-apt-proxy | grep -q 'http://127.0.0.1:3142' ; then
echo "Cannot find the local apt proxy needed to build live images."
exit 1
fi
for IMG in {{ build_images|join(' ') }} ; do
echo "=========== Building image $IMG ==========="
run_build $IMG
done