X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fupdatebase.CENTOS;h=dd418d885054bb5a37966a7f1542f8dbd04c2bd1;hb=ffbf3d9d64f9846be1151da6dd8a13f471795e55;hp=6f5813aa7ef4069eabb31af5d70ee3da8b67056d;hpb=3bd65f0ca635f1349626c2393a4dd8a50df64f54;p=automated-distro-installer diff --git a/fai/config/hooks/updatebase.CENTOS b/fai/config/hooks/updatebase.CENTOS index 6f5813a..dd418d8 100755 --- a/fai/config/hooks/updatebase.CENTOS +++ b/fai/config/hooks/updatebase.CENTOS @@ -4,11 +4,22 @@ if [ ! -f $target/etc/resolv.conf ]; then cp /etc/resolv.conf $target/etc fi -if [ "$verbose" ]; then +if [ X$verbose = X1 ]; then echo "Updating base" - $ROOTCMD yum -y update 2>&1 | tee -a $LOGDIR/software.log + $ROOTCMD yum -y update |& tee -a $LOGDIR/software.log else $ROOTCMD yum -y update >> $LOGDIR/software.log fi +$ROOTCMD systemd-machine-id-setup + +cat > $target/etc/sysconfig/kernel <