CLOUDSTACK-7660: Enhance system vm template to support baremetal Installed Package flask and merged the disk partition
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/14c820ae Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/14c820ae Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/14c820ae Branch: refs/heads/baremetal-systemvm Commit: 14c820ae02dceb94b6c61deb79694be77253b52a Parents: a72580d Author: Harikrishna Patnala <[email protected]> Authored: Tue Oct 21 18:31:48 2014 +0530 Committer: Kishan Kavala <[email protected]> Committed: Tue Oct 21 20:06:34 2014 +0530 ---------------------------------------------------------------------- systemvm/patches/debian/buildsystemvm.sh | 5 +++ .../definitions/systemvmtemplate/preseed.cfg | 41 -------------------- 2 files changed, 5 insertions(+), 41 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/14c820ae/systemvm/patches/debian/buildsystemvm.sh ---------------------------------------------------------------------- diff --git a/systemvm/patches/debian/buildsystemvm.sh b/systemvm/patches/debian/buildsystemvm.sh index 7f6188a..f56ca1e 100755 --- a/systemvm/patches/debian/buildsystemvm.sh +++ b/systemvm/patches/debian/buildsystemvm.sh @@ -382,6 +382,11 @@ packages() { echo "***** getting jre 7 *********" chroot . apt-get --no-install-recommends -q -y install openjdk-7-jre-headless + + chroot . apt-get --no-install-recommends -q -y install python-dev python-pip libpcre3-dev + + # Baremetal tools + chroot . pip install flask } http://git-wip-us.apache.org/repos/asf/cloudstack/blob/14c820ae/tools/appliance/definitions/systemvmtemplate/preseed.cfg ---------------------------------------------------------------------- diff --git a/tools/appliance/definitions/systemvmtemplate/preseed.cfg b/tools/appliance/definitions/systemvmtemplate/preseed.cfg index 0d2f70b..832a296 100644 --- a/tools/appliance/definitions/systemvmtemplate/preseed.cfg +++ b/tools/appliance/definitions/systemvmtemplate/preseed.cfg @@ -42,47 +42,6 @@ d-i clock-setup/ntp boolean true d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular d-i partman-auto/choose_recipe select atomic -d-i partman-auto/expert_recipe string \ - boot-root :: \ - 30 50 100 ext4 \ - $primary{ } $bootable{ } \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ /boot } \ - . \ - 400 40 500 ext4 \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ / } \ - . \ - 50 100 200 ext4 \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ /home } \ - . \ - 700 70 1100 ext4 \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ /usr } \ - . \ - 400 40 500 ext4 \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ /opt } \ - . \ - 450 70 1000 ext4 \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ /var } \ - . \ - 50 60 100 ext4 \ - method{ format } format{ } \ - use_filesystem{ } filesystem{ ext4 } \ - mountpoint{ /tmp } \ - . \ - 70 100 256 linux-swap \ - method{ swap } format{ } \ - . d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true
