Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A script to create a custom build of Debian or Ubuntu
#!/bin/bash
tools=( "/usr/bin/build-simple-cdd" "/usr/bin/xorriso" )
count="${#tools[@]}"
for i in `seq 1 $(($count-1))`
do
if [ ! -f "${tools[$i]}" ]
then
echo "${tools[$i]} is not found"
exit
fi
done
mirror="http://mirror.yandex.ru"
build-simple-cdd \
--dist jessie \
--profiles switch \
--security-mirror $mirror/debian-security/ \
--debian-mirror $mirror/debian/ \
--local-packages $(pwd)/repository/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.