6 # Build BootCD variants with kernels specified in /etc/planetlab/bootcd-variants
8 # Source function library and configuration
16 MESSAGE=$"Creating BootCD variants"
20 for i in /usr/share/bootcd-*; do
22 basearch=$(echo $i | awk -F- '{ print $NF }')
23 arch=$(echo $basearch | sed 's/i386/i686/')
24 for j in /etc/planetlab/bootcd-variants/*; do
26 url=$(cat "$j" | sed "s!@BASEARCH@!$basearch!g;s!@ARCH@!$arch!g")
27 if test -d "$name"; then
28 test build/isofs/bootcd.img -nt "$name/isofs/bootcd.img" || continue
29 elif test "$name" = default; then
31 grep -q support@planet-lab.org build/isofs/kernel || continue
33 if test "$url" != $(echo "$url" | sed s#[:/]##); then
34 ./kvariant.sh "$name" "$url"
36 dir=$(mktemp -d -p /var/tmp)
37 yumdownloader --disablerepo='*' \
39 --enablerepo=updates \
40 --destdir "$dir" "$url"
41 ./kvariant.sh "$name" "$dir"/"$url"*
44 if test "$name" = default; then