Diskimage-builder complex disk setup

Stephen Nemeth kbaegis at gmail.com
Thu Mar 19 17:58:28 UTC 2020


Hi all,

We’re attempting to create user images to deploy with metal^3/ironic.

I’m making almost no headway starting from any of the examples provided for the DIB_BLOCK_DEVICE_CONFIG setup.

Is there a repository with practical values located anywhere? I’m finding the documentation insufficient to do anything more complicated than a single partition setup.

Here’s what I’ve gotten so far. Help greatly appreciated:

```
[
  {
    "local_loop": {
      "name": "image0",
      "size": "20GiB"
    }
  },
  {
    "partitioning": {
      "base": "image0",
      "label": "gpt",
      "partitions": [
        {
          "name": "ESP",
          "type": "EF00",
          "size": "16MiB"
        },
        {
          "name": "boot",
          "type": "EF02",
          "size": "6GiB"
        },
        {
          "name": "lvm",
          "type": 8,
          "size": "100%"
        }
      ]
    }
  },
  {
    "lvm": {
      "name": "lvm2",
      "pvs": [
        {
          "name": "pv",
          "options": [
            "--force"
          ],
          "device": "lvm",
          "base": "image0"
        }
      ],
      "vgs": [
        {
          "name": "vg",
          "base": [
            "pv"
          ],
          "options": [
            "--force"
          ]
        }
      ],
      "lvs": [
        {
          "name": "root",
          "base": "vg",
          "extents": "100%FREE",
          "options": [
            "--zero=n"
          ]
        }
      ]
    }
  },
  {
    "mkfs": {
        {
          "name": "mkfs_root",
          "base": "root",
          "type": "btrfs",
          "label": "root",
          "opts": "-f",
          "mount": { "mount_point": "/" }
        },
        {
          "name": "mkfs_efi",
          "base": "ESP",
          "type": "vfat",
          "label": "efi",
          "opts": "-f",
          "mount": { "mount_point": "/boot/efi/" }
        },
        {
          "name": "mkfs_boot",
          "base": "boot",
          "type": "btrfs",
          "label": "boot",
          "opts": "-f",
          "mount": { "mount_point": "/boot/" }
        }
    }
  }
]
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200319/0e6a3f56/attachment-0001.html>


More information about the openstack-discuss mailing list