- if [[ ! -e $BASEFILE_DIR/autodiscover.iso ]]; then
- fai-cd grub.cfg.autodiscover -f -A $BASEFILE_DIR/autodiscover.iso
+ isopath=$BASEFILE_DIR/$iso
+ isosrc=$BASEFILE_DIR/BULLSEYE64.tar.gz
+ if [[ ! -e $isopath || $(stat -c %Y $isopath) -lt $(stat -c %Y $isosrc) ]]; then
+ e sudo fai-cd -g $(readlink -f grub.cfg.${iso%%.*}) -f -A $isopath