X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fbootcd-kernel;h=e7526fa0aaaa42c9f6a88cf3bccb1416ac02ae01;hb=f52297b2628f75436e0d4c58ef5bb454453e9af0;hp=356540b386aebec06f4dc8a21eb914ad77c32668;hpb=5e577ca4e86a652c000d4cabcc4acd4afacefad5;p=bootcd.git diff --git a/plc.d/bootcd-kernel b/plc.d/bootcd-kernel index 356540b..e7526fa 100755 --- a/plc.d/bootcd-kernel +++ b/plc.d/bootcd-kernel @@ -1,9 +1,11 @@ #!/bin/bash +# $Id$ +# $URL$ # # priority: 999 # -# $Id$ # Build BootCD variants with kernels specified in /etc/planetlab/bootcd-variants +# # Source function library and configuration . /etc/plc.d/functions @@ -21,23 +23,20 @@ case "$1" in pushd $i basearch=$(echo $i | awk -F- '{ print $NF }') arch=$(echo $basearch | sed 's/i386/i686/') - for j in /etc/planetlab/bootcd-variants/*; do + for j in $(ls -d /etc/planetlab/bootcd-variants/* 2> /dev/null); do name="${j##*/}" url=$(cat "$j" | sed "s!@BASEARCH@!$basearch!g;s!@ARCH@!$arch!g") if test -d "$name"; then test build/isofs/bootcd.img -nt "$name/isofs/bootcd.img" || continue elif test "$name" = default; then # Not ideal, but... - grep -q support@planet-lab.org build/isofs/kernel || continue + grep -q support@ build/isofs/kernel || continue fi if test "$url" != $(echo "$url" | sed s#[:/]##); then ./kvariant.sh "$name" "$url" else dir=$(mktemp -d -p /var/tmp) - yumdownloader --disablerepo='*' \ - --enablerepo=base \ - --enablerepo=updates \ - --destdir "$dir" "$url" + yumdownloader --destdir "$dir" "$url" ./kvariant.sh "$name" "$dir"/"$url"* rm -fr "$dir" fi