Let the data/debian-cd symlink point to sid

It's more likely to always exists. The wheezy target is just
gone with newer live-builds...
debian-cd
Raphaël Hertzog 10 years ago
parent f78f6d0697
commit 413b2774a9

@ -55,13 +55,13 @@ eval set -- "$temp"
dist=$(curl -s $kali_mirror/dists/$dist/Release | awk '/^Codename:/ {print $2}') dist=$(curl -s $kali_mirror/dists/$dist/Release | awk '/^Codename:/ {print $2}')
# live-build doesn't work if --parent-debian-distribution is unknown of # live-build doesn't work if --parent-debian-distribution is unknown of
# debian-cd => we have to put a symlink so that it deals with kali like wheezy # debian-cd => we have to put a symlink so that it deals with kali like sid
if [ ! -e ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist ]; then if [ ! -e ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist ]; then
if [ -w ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd ]; then if [ -w ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd ]; then
ln -sf wheezy ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist ln -sf sid ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist
else else
echo "ERROR: Run this first:" echo "ERROR: Run this first:"
echo "ln -sf wheezy ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist" echo "ln -sf sid ${LIVE_BUILD:-/usr/share/live/build}/data/debian-cd/$dist"
exit 1 exit 1
fi fi
fi fi

Loading…
Cancel
Save