Implement livebox gnome-edu image build.
This commit is contained in:
parent
6438585128
commit
829b8b4d3b
55 changed files with 608 additions and 4 deletions
27
roles/edulive/templates/livebuilder.sh
Normal file
27
roles/edulive/templates/livebuilder.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/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:
|
||||
|
||||
for IMG in {{ build_images|join(' ') }} ; do
|
||||
echo "=========== Building image $IMG ==========="
|
||||
run_build $IMG
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue