mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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>
This commit is contained in:
parent
a2b8fb5f6d
commit
c9afa8e5b4
@ -1,6 +1,6 @@
|
||||
# Apache CloudStack [](https://travis-ci.org/apache/cloudstack) [](https://scan.coverity.com/projects/943)
|
||||
|
||||

|
||||

|
||||
|
||||
Apache CloudStack is open source software designed to deploy and manage large
|
||||
networks of virtual machines, as a highly available, highly scalable
|
||||
|
||||
@ -38,6 +38,7 @@ d-i mirror/http/proxy string
|
||||
|
||||
### Apt setup
|
||||
d-i apt-setup/cdrom/set-first false
|
||||
d-i apt-setup/security-updates boolean true
|
||||
d-i apt-setup/services-select multiselect security, updates
|
||||
d-i apt-setup/security_host string security.debian.org
|
||||
d-i apt-setup/local0/source boolean false
|
||||
@ -53,7 +54,7 @@ d-i partman-auto/disk string /dev/vda
|
||||
d-i partman-auto/method string regular
|
||||
d-i partman-auto/expert_recipe string \
|
||||
boot-root :: \
|
||||
80 50 100 ext2 \
|
||||
80 50 160 ext2 \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ ext2 } \
|
||||
@ -105,7 +106,7 @@ openssh-server openssh-server/permit-root-login boolean true
|
||||
tasksel tasksel/first multiselect ssh-server
|
||||
d-i pkgsel/include string openssh-server ntp acpid sudo bzip2 openssl
|
||||
# Allowed values: none, safe-upgrade, full-upgrade
|
||||
d-i pkgsel/upgrade select none
|
||||
d-i pkgsel/upgrade select full-upgrade
|
||||
|
||||
popularity-contest popularity-contest/participate boolean false
|
||||
|
||||
|
||||
@ -24,10 +24,11 @@ function fix_tune2fs() {
|
||||
for partition in $(blkid -o list | grep ext | awk '{print $1}')
|
||||
do
|
||||
tune2fs -m 1 $partition
|
||||
tune2fs -c 2 $partition
|
||||
tune2fs -c 3 $partition
|
||||
done
|
||||
fdisk -l
|
||||
df -h
|
||||
uname -a
|
||||
}
|
||||
|
||||
function add_backports() {
|
||||
@ -54,6 +55,7 @@ function apt_upgrade() {
|
||||
apt-get -q -y update
|
||||
apt-get -q -y upgrade
|
||||
apt-get -q -y dist-upgrade
|
||||
apt-get -y remove --purge linux-image-4.9.0-4-amd64
|
||||
apt-get -y autoremove --purge
|
||||
apt-get autoclean
|
||||
apt-get clean
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user