Support in-place template reinstalls - for testing
This doesn't yet prevent appvms from starting with invalid template during the reinstall, and doesn't deal with the Netvm setting problem. For issue #2061
This commit is contained in:
parent
6b315b1dad
commit
17627cdf3c
@ -63,9 +63,11 @@ done
|
|||||||
|
|
||||||
# Prevent template upgrade - this would override user changes -
|
# Prevent template upgrade - this would override user changes -
|
||||||
# but do allow explicit template reinstalls
|
# but do allow explicit template reinstalls
|
||||||
if [ "$YUM_ACTION" == "reinstall" ] ; then
|
if [ "$YUM_ACTION" == "reinstall" ] && [[ "$PKGS" == *"qubes-template-"* ]]; then
|
||||||
TEMPLATE_EXCLUDE_OPTS=""
|
TEMPLATE_EXCLUDE_OPTS=""
|
||||||
else TEMPLATE_EXCLUDE_OPTS="--exclude=`rpm -qa --qf '%{NAME},' qubes-template-\*`"
|
echo "WARNING: Reinstalling a template will erase files in /home and /rw !"
|
||||||
|
else
|
||||||
|
TEMPLATE_EXCLUDE_OPTS="--exclude=`rpm -qa --qf '%{NAME},' qubes-template-\*`"
|
||||||
fi
|
fi
|
||||||
YUM_OPTS="$TEMPLATE_EXCLUDE_OPTS $YUM_OPTS"
|
YUM_OPTS="$TEMPLATE_EXCLUDE_OPTS $YUM_OPTS"
|
||||||
ALL_OPTS="$TEMPLATE_EXCLUDE_OPTS $ALL_OPTS"
|
ALL_OPTS="$TEMPLATE_EXCLUDE_OPTS $ALL_OPTS"
|
||||||
|
Loading…
Reference in New Issue
Block a user