cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ro...@apache.org
Subject [cloudstack] branch master updated: CLOUDSTACK-10013: Enable debian security repos during systemvm building
Date Tue, 09 Jan 2018 10:45:11 GMT
This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new d30b75c  CLOUDSTACK-10013: Enable debian security repos during systemvm building
d30b75c is described below

commit d30b75cfbc505cc547bd8f5150fa95b72631e1cf
Author: Rohit Yadav <rohit.yadav@shapeblue.com>
AuthorDate: Tue Jan 9 16:13:51 2018 +0530

    CLOUDSTACK-10013: Enable debian security repos during systemvm building
    
    Perform a dist-upgrade to upgrade all packages especially the linux
    kernel before building the systemvmtemplate.
    
    Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
---
 tools/appliance/systemvmtemplate/scripts/apt_upgrade.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/appliance/systemvmtemplate/scripts/apt_upgrade.sh b/tools/appliance/systemvmtemplate/scripts/apt_upgrade.sh
index 7387159..e4b779b 100644
--- a/tools/appliance/systemvmtemplate/scripts/apt_upgrade.sh
+++ b/tools/appliance/systemvmtemplate/scripts/apt_upgrade.sh
@@ -34,7 +34,9 @@ function add_backports() {
   sed -i '/cdrom/d' /etc/apt/sources.list
   sed -i '/deb-src/d' /etc/apt/sources.list
   sed -i '/backports/d' /etc/apt/sources.list
+  sed -i '/security/d' /etc/apt/sources.list
   echo 'deb http://http.debian.net/debian stretch-backports main' >> /etc/apt/sources.list
+  echo 'deb http://security.debian.org/debian-security stretch/updates main' >> /etc/apt/sources.list
 }
 
 function apt_upgrade() {
@@ -51,6 +53,7 @@ function apt_upgrade() {
   rm -fv /root/*.iso
   apt-get -q -y update
   apt-get -q -y upgrade
+  apt-get -q -y dist-upgrade
   apt-get -y autoremove --purge
   apt-get autoclean
   apt-get clean

-- 
To stop receiving notification emails like this one, please contact
['"commits@cloudstack.apache.org" <commits@cloudstack.apache.org>'].

Mime
View raw message