#!/bin/bash set -ex sudo cp local.list /etc/apt/sources.list.d/ cat > linaro.pref < pkg-lists/local ext4-modules-\${kernel:Version} fat-modules-\${kernel:Version} btrfs-modules-\${kernel:Version} md-modules-\${kernel:Version} efi-modules-\${kernel:Version} scsi-modules-\${kernel:Version} jfs-modules-\${kernel:Version} xfs-modules-\${kernel:Version} ata-modules-\${kernel:Version} sata-modules-\${kernel:Version} usb-storage-modules-\${kernel:Version} EOF cat ../../localudebs >> pkg-lists/local cp ../../default-preseed . fakeroot make build_netboot cd ../.. cp debian-installer-*/build/dest/netboot/mini.iso . cp debian-installer-*/build/dest/netboot/netboot.tar.gz . # Final preparation for publishing mkdir out cp -a debian-installer-*/build/default-preseed out/default-preseed.cfg cp -a mini.iso netboot.tar.gz out/ cd out; tar -zxvf netboot.tar.gz; cd .. # Create MD5SUMS file (cd out && find -type f -exec md5sum {} \; | sed "s/ \.\// /g" > MD5SUMS.txt)