CLOUDSTACK-7658: Upgrading debian packages as part of system vm template build

Signed-off-by: Jayapal <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ccc8c338
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ccc8c338
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ccc8c338

Branch: refs/heads/4.4
Commit: ccc8c338960378fae5ff105e6e8a0b173dd9af07
Parents: f67d440
Author: Harikrishna Patnala <[email protected]>
Authored: Tue Sep 30 17:03:22 2014 +0530
Committer: Rohit Yadav <[email protected]>
Committed: Thu Dec 11 19:57:16 2014 +0530

----------------------------------------------------------------------
 tools/appliance/definitions/systemvm64template/postinstall.sh | 2 ++
 tools/appliance/definitions/systemvmtemplate/postinstall.sh   | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ccc8c338/tools/appliance/definitions/systemvm64template/postinstall.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvm64template/postinstall.sh 
b/tools/appliance/definitions/systemvm64template/postinstall.sh
index a4d3cbe..064a222 100644
--- a/tools/appliance/definitions/systemvm64template/postinstall.sh
+++ b/tools/appliance/definitions/systemvm64template/postinstall.sh
@@ -31,6 +31,8 @@ install_packages() {
   DEBIAN_FRONTEND=noninteractive
   DEBIAN_PRIORITY=critical
 
+  DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -qq -y 
--force-yes upgrade
+
   # Basic packages
   apt-get --no-install-recommends -q -y --force-yes install rsyslog logrotate 
cron chkconfig insserv net-tools ifupdown vim-tiny netbase iptables
   apt-get --no-install-recommends -q -y --force-yes install openssh-server 
openssl e2fsprogs dhcp3-client tcpdump socat wget

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ccc8c338/tools/appliance/definitions/systemvmtemplate/postinstall.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/definitions/systemvmtemplate/postinstall.sh 
b/tools/appliance/definitions/systemvmtemplate/postinstall.sh
index b59d3aa..5370849 100644
--- a/tools/appliance/definitions/systemvmtemplate/postinstall.sh
+++ b/tools/appliance/definitions/systemvmtemplate/postinstall.sh
@@ -31,6 +31,8 @@ install_packages() {
   DEBIAN_FRONTEND=noninteractive
   DEBIAN_PRIORITY=critical
 
+  DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -qq -y 
--force-yes upgrade
+
   # Basic packages
   apt-get --no-install-recommends -q -y --force-yes install rsyslog logrotate 
cron chkconfig insserv net-tools ifupdown vim-tiny netbase iptables
   apt-get --no-install-recommends -q -y --force-yes install openssh-server 
openssl e2fsprogs dhcp3-client tcpdump socat wget

Reply via email to