diff options
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/system-upgrade | 9 |
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 } |