mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
systemvmtemplate: Enable security repos and dist-upgrade when building
This enables Wheezy security repos during systemvmtemplate building, and does a dist-upgrade to update/upgrade all outstanding packages especially the Linux kernel. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
c12e1386d3
commit
8daf634a18
@ -21,7 +21,9 @@ set -x
|
||||
|
||||
function add_backports() {
|
||||
sed -i '/backports/d' /etc/apt/sources.list
|
||||
sed -i '/security/d' /etc/apt/sources.list
|
||||
echo 'deb http://http.debian.net/debian wheezy-backports main' >> /etc/apt/sources.list
|
||||
echo 'deb http://security.debian.org/debian-security wheezy/updates main' >> /etc/apt/sources.list
|
||||
}
|
||||
|
||||
function apt_upgrade() {
|
||||
@ -33,6 +35,7 @@ function apt_upgrade() {
|
||||
apt-get clean
|
||||
apt-get -q -y --force-yes update
|
||||
apt-get -q -y --force-yes upgrade
|
||||
apt-get -q -y --force-yes dist-upgrade
|
||||
}
|
||||
|
||||
return 2>/dev/null || apt_upgrade
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user