6f5813aa7ef4069eabb31af5d70ee3da8b67056d
[automated-distro-installer] / fai / config / hooks / updatebase.CENTOS
1 #! /bin/bash
2
3 if [ ! -f $target/etc/resolv.conf ]; then
4 cp /etc/resolv.conf $target/etc
5 fi
6
7 if [ "$verbose" ]; then
8 echo "Updating base"
9 $ROOTCMD yum -y update 2>&1 | tee -a $LOGDIR/software.log
10 else
11 $ROOTCMD yum -y update >> $LOGDIR/software.log
12 fi
13
14 skiptask updatebase