You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2018/01/09 10:45:11 UTC
[cloudstack] branch master updated: CLOUDSTACK-10013: Enable debian
security repos during systemvm building
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 <ro...@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 <ro...@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" <co...@cloudstack.apache.org>'].