dom+vm: Copy dom0 yum.conf to UpdateVM
At least to use dom0 'exclude' options, not VM one. Especially to not exlude kernel and xorg updates...
This commit is contained in:
parent
3b21e8a596
commit
715b7745dc
@ -8,7 +8,7 @@ if ! [ -d "$DOM0_UPDATES_DIR" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $DOM0_UPDATES_DIR/etc
|
mkdir -p $DOM0_UPDATES_DIR/etc
|
||||||
cp /etc/yum.conf $DOM0_UPDATES_DIR/etc/
|
sed -i '/^reposdir\s*=/d' $DOM0_UPDATES_DIR/etc/yum.conf
|
||||||
|
|
||||||
# check also for template updates
|
# check also for template updates
|
||||||
echo "Checking for template updates..." >&2
|
echo "Checking for template updates..." >&2
|
||||||
|
@ -34,7 +34,7 @@ if ! [ -d "$DOM0_UPDATES_DIR" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p $DOM0_UPDATES_DIR/etc
|
mkdir -p $DOM0_UPDATES_DIR/etc
|
||||||
cp /etc/yum.conf $DOM0_UPDATES_DIR/etc/
|
sed -i '/^reposdir\s*=/d' $DOM0_UPDATES_DIR/etc/yum.conf
|
||||||
|
|
||||||
if [ "x$CLEAN" = "1" ]; then
|
if [ "x$CLEAN" = "1" ]; then
|
||||||
yum $OPTS clean all
|
yum $OPTS clean all
|
||||||
|
Loading…
Reference in New Issue
Block a user