Created
January 15, 2017 08:36
-
-
Save EvilFreelancer/5f59729086f573a0d218c2824975a958 to your computer and use it in GitHub Desktop.
A script to create a custom build of Debian or Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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