Skip to content

Commit c9afa8e

Browse files
committed
CLOUDSTACK-10013: Fix systemvmtemplate build failure
This enables security updates in preseed file and removes purges old kernel, and increases maximum /boot partition size. Build failures were found due to insufficient space in /boot. Tested with packer+qemu on Ubuntu 17.10. Also silently remove xmas cloudstack cloudmonkey logo without hurting anyone's sentiments (no monkeys were harmed in this commit ;). Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent a2b8fb5 commit c9afa8e

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Apache CloudStack [![Build Status](https://travis-ci.org/apache/cloudstack.svg?branch=master)](https://travis-ci.org/apache/cloudstack) [![Coverity Scan Build Status](https://scan.coverity.com/projects/943/badge.svg)](https://scan.coverity.com/projects/943)
22

3-
![Apache CloudStack](tools/logo/acsxmas.jpg)
3+
![Apache CloudStack](tools/logo/apache_cloudstack.png)
44

55
Apache CloudStack is open source software designed to deploy and manage large
66
networks of virtual machines, as a highly available, highly scalable

tools/appliance/systemvmtemplate/http/preseed.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ d-i mirror/http/proxy string
3838

3939
### Apt setup
4040
d-i apt-setup/cdrom/set-first false
41+
d-i apt-setup/security-updates boolean true
4142
d-i apt-setup/services-select multiselect security, updates
4243
d-i apt-setup/security_host string security.debian.org
4344
d-i apt-setup/local0/source boolean false
@@ -53,7 +54,7 @@ d-i partman-auto/disk string /dev/vda
5354
d-i partman-auto/method string regular
5455
d-i partman-auto/expert_recipe string \
5556
boot-root :: \
56-
80 50 100 ext2 \
57+
80 50 160 ext2 \
5758
$primary{ } $bootable{ } \
5859
method{ format } format{ } \
5960
use_filesystem{ } filesystem{ ext2 } \
@@ -105,7 +106,7 @@ openssh-server openssh-server/permit-root-login boolean true
105106
tasksel tasksel/first multiselect ssh-server
106107
d-i pkgsel/include string openssh-server ntp acpid sudo bzip2 openssl
107108
# Allowed values: none, safe-upgrade, full-upgrade
108-
d-i pkgsel/upgrade select none
109+
d-i pkgsel/upgrade select full-upgrade
109110

110111
popularity-contest popularity-contest/participate boolean false
111112

tools/appliance/systemvmtemplate/scripts/apt_upgrade.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ function fix_tune2fs() {
2424
for partition in $(blkid -o list | grep ext | awk '{print $1}')
2525
do
2626
tune2fs -m 1 $partition
27-
tune2fs -c 2 $partition
27+
tune2fs -c 3 $partition
2828
done
2929
fdisk -l
3030
df -h
31+
uname -a
3132
}
3233

3334
function add_backports() {
@@ -54,6 +55,7 @@ function apt_upgrade() {
5455
apt-get -q -y update
5556
apt-get -q -y upgrade
5657
apt-get -q -y dist-upgrade
58+
apt-get -y remove --purge linux-image-4.9.0-4-amd64
5759
apt-get -y autoremove --purge
5860
apt-get autoclean
5961
apt-get clean

0 commit comments

Comments
 (0)