Skip to content

Instantly share code, notes, and snippets.

@EvilFreelancer
Created January 15, 2017 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvilFreelancer/5f59729086f573a0d218c2824975a958 to your computer and use it in GitHub Desktop.
Save EvilFreelancer/5f59729086f573a0d218c2824975a958 to your computer and use it in GitHub Desktop.
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