This is an automated email from the ASF dual-hosted git repository. rohit pushed a commit to branch debian9-systemvmtemplate in repository https://gitbox.apache.org/repos/asf/cloudstack.git
commit dd70f3f5d9da36549c51b30031081a17522388ac Author: Rohit Yadav <[email protected]> AuthorDate: Sun Dec 17 12:55:26 2017 +0530 fix low space issue Signed-off-by: Rohit Yadav <[email protected]> --- .../appliance/definitions/systemvmtemplate/apt_upgrade.sh | 5 +++-- tools/appliance/definitions/systemvmtemplate/definition.rb | 2 +- .../systemvmtemplate/install_systemvm_packages.sh | 14 +++++++------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/tools/appliance/definitions/systemvmtemplate/apt_upgrade.sh b/tools/appliance/definitions/systemvmtemplate/apt_upgrade.sh index 4d5ff26..7387159 100644 --- a/tools/appliance/definitions/systemvmtemplate/apt_upgrade.sh +++ b/tools/appliance/definitions/systemvmtemplate/apt_upgrade.sh @@ -49,10 +49,11 @@ function apt_upgrade() { add_backports rm -fv /root/*.iso - apt-get -y autoremove - apt-get autoclean apt-get -q -y update apt-get -q -y upgrade + apt-get -y autoremove --purge + apt-get autoclean + apt-get clean } return 2>/dev/null || apt_upgrade diff --git a/tools/appliance/definitions/systemvmtemplate/definition.rb b/tools/appliance/definitions/systemvmtemplate/definition.rb index 52cb7df..917dd77 100644 --- a/tools/appliance/definitions/systemvmtemplate/definition.rb +++ b/tools/appliance/definitions/systemvmtemplate/definition.rb @@ -36,7 +36,7 @@ architectures = { config = { :cpu_count => '1', :memory_size => '512', - :disk_size => '2100', :disk_format => 'VDI', :hostiocache => 'off', + :disk_size => '2000', :disk_format => 'VDI', :hostiocache => 'off', :iso_download_timeout => '1000', :boot_wait => '10', :boot_cmd_sequence => [ diff --git a/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh b/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh index 30ad66d..370054a 100644 --- a/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh +++ b/tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh @@ -45,13 +45,6 @@ function install_packages() { local apt_get="apt-get --no-install-recommends -q -y" - #32 bit architecture support:: not required for 32 bit template - if [ "${arch}" != "i386" ]; then - dpkg --add-architecture i386 - apt-get update - ${apt_get} install links:i386 libuuid1:i386 libc6:i386 - fi - ${apt_get} install grub-legacy \ rsyslog logrotate cron net-tools ifupdown tmux vim htop netbase iptables \ openssh-server e2fsprogs tcpdump socat wget \ @@ -83,6 +76,13 @@ function install_packages() { apt-get autoclean apt-get clean + #32 bit architecture support:: not required for 32 bit template + if [ "${arch}" != "i386" ]; then + dpkg --add-architecture i386 + apt-get update + ${apt_get} install links:i386 libuuid1:i386 libc6:i386 + fi + # Install xenserver guest utilities as debian repos don't have it wget https://mirrors.kernel.org/ubuntu/pool/universe/x/xe-guest-utilities/xe-guest-utilities_7.4.0-0ubuntu1_amd64.deb dpkg -i xe-guest-utilities_7.4.0-0ubuntu1_amd64.deb -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
