summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-11-20 17:23:55 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-12-03 18:09:28 +0000
commit586346b9b06d4bfa06c93cdf9aa1fa5048264c64 (patch)
tree22714cbe4766bbd4c8152c8f24c9f644e7b08f76
parent62dffb60e625404ed46a5d5c6f3e96de88bdd949 (diff)
downloaddefinitions-586346b9b06d4bfa06c93cdf9aa1fa5048264c64.tar.gz
Add example cluster of a baserock installer system
This cluster deploys a baserock installer as a rawdisk image.
-rw-r--r--clusters/installer-build-system-x86_64.morph41
1 files changed, 41 insertions, 0 deletions
diff --git a/clusters/installer-build-system-x86_64.morph b/clusters/installer-build-system-x86_64.morph
new file mode 100644
index 00000000..279cc59d
--- /dev/null
+++ b/clusters/installer-build-system-x86_64.morph
@@ -0,0 +1,41 @@
+name: installer-build-system-x86_64
+kind: cluster
+description: |
+ This is a cluster morphology that can be used to deploy
+ installer systems. This is done by adding the files needed
+ using a manifest file (installer/manifest) with the INSTALL_FILES
+ extension. This manifest is installing the /installer.py script
+ and the /etc/install.conf in the deployed system.
+
+ Also, adding "init=/installer.py" as KERNEL_ARGS in the system
+ makes the system run the installer.py script as init script.
+
+ The installer.py script will read the information needed to
+ install the system (where is the root filesystem to install and
+ where to install it) from /etc/install.conf
+
+systems:
+- morph: systems/build-system-x86_64.morph
+ deploy:
+ installer:
+ type: rawdisk
+ location: installer-build-system-x86_64.img
+ INSTALL_FILES: installer/manifest
+ KERNEL_ARGS: init=/usr/lib/installer/installer.py
+ DISK_SIZE: 6G
+ HOSTNAME: installer-x86_64
+ INSTALLER_TARGET_STORAGE_DEVICE: /dev/sdb
+ INSTALLER_ROOTFS_TO_INSTALL: /rootfs
+ subsystems:
+ - morph: systems/build-system-x86_64.morph
+ deploy:
+ to-install:
+ type: sysroot
+ location: /rootfs
+ INITRAMFS_PATH: boot/initramfs.gz
+ subsystems:
+ - morph: systems/initramfs-x86_64.morph
+ deploy:
+ initramfs:
+ type: initramfs
+ location: boot/initramfs.gz