summaryrefslogtreecommitdiff
path: root/clusters/installer-build-system-x86_64.morph
blob: aff78dbed684ba643cbc5c42d7ad7a37e3ff0f5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: build-system-x86_64-installer.img
      INSTALL_FILES: installer/manifest
      KERNEL_ARGS: init=/installer.py
      HOSTNAME: installer-x86_64
  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