summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-24 20:26:32 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-24 20:26:32 -0200
commit1a7900557ca89da6d575b6c165ed93f86f4c81f5 (patch)
tree951982049e3f8108dda1f95ccce9dafc21413f56 /share/hydractl
parent170033013f43f6061078308aa6022bcb5a7d39fb (diff)
downloadhydra-1a7900557ca89da6d575b6c165ed93f86f4c81f5.tar.gz
hydra-1a7900557ca89da6d575b6c165ed93f86f4c81f5.tar.bz2
Custom procedures for vservers at system-upgrade
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/system-upgrade9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hydractl/system-upgrade b/share/hydractl/system-upgrade
index bd40343..f0ecfa4 100755
--- a/share/hydractl/system-upgrade
+++ b/share/hydractl/system-upgrade
@@ -44,6 +44,9 @@ function hydra_system_upgrade_prepare {
release="`facter 2> /dev/null | grep lsbdistcodename | sed -e 's/lsbdistcodename => //'`"
nextrelease="`hydra_next_debian_release $release`"
+ # Is a virtual machine?
+ virtual="`facter 2> /dev/null | grep virtual | sed -e 's/virtual => //'`"
+
# Check release
if [ "$?" != "0" ]; then
echo "Unsupported release"
@@ -78,6 +81,12 @@ function hydra_system_upgrade_prepare {
rm -f /etc/apt/sources.list.d/*
rm -f /etc/apt/preferences.d/*
+ # These might lead in upgrade errors
+ if [ "$virtual" == "vserver" ]; then
+ apt-get remove makedev -y
+ apt-get remove colord -y
+ fi
+
hydra_system_upgrade_stage download
}