Fix debian-buster partition config

There was a lack of indentation which led to:

  Traceback (most recent call last):
    File "/usr/local/bin/dib-block-device", line 11, in <module>
      sys.exit(main())
    File "/usr/local/lib/python3.5/dist-packages/diskimage_builder/block_device/cmd.py", line 120, in main
      return bdc.main()
    File "/usr/local/lib/python3.5/dist-packages/diskimage_builder/block_device/cmd.py", line 115, in main
      self.args.func()
    File "/usr/local/lib/python3.5/dist-packages/diskimage_builder/block_device/cmd.py", line 30, in cmd_init
      self.bd.cmd_init()
    File "/usr/local/lib/python3.5/dist-packages/diskimage_builder/block_device/blockdevice.py", line 260, in cmd_init
      self.config = config_tree_to_graph(self.config)
    File "/usr/local/lib/python3.5/dist-packages/diskimage_builder/block_device/config.py", line 134, in config_tree_to_graph
      "Config entry top-level should be a single dict: %s" % entry)
  diskimage_builder.block_device.exception.BlockDeviceSetupException:
    Config entry top-level should be a single dict:
      {
        'base': 'image0',
        'partitioning': None,
        'partitions': [{'flags': ['boot', 'primary'],
          'mkfs': {'mount': {'fstab': {'options': 'defaults,nobarrier,noatime', 'fsck-passno': 1}, 'mount_point': '/'}},
          'size': '100%', 'name': 'root'}],
        'label': 'mbr'}

Note the paritioning value is None rather than a dict with those keys in
it.

Change-Id: I543222402a8e4d08cf075b2ed7f7c45d705799ca
This commit is contained in:
Clark Boylan 2020-03-09 12:21:27 -07:00
parent d716ed99d0
commit 4df89b9be5
1 changed files with 12 additions and 12 deletions

View File

@ -227,18 +227,18 @@ diskimages:
name: image0
- partitioning:
base: image0
label: mbr
partitions:
- name: root
flags: [ boot, primary ]
size: 100%
mkfs:
mount:
mount_point: /
fstab:
options: "defaults,nobarrier,noatime"
fsck-passno: 1
base: image0
label: mbr
partitions:
- name: root
flags: [ boot, primary ]
size: 100%
mkfs:
mount:
mount_point: /
fstab:
options: "defaults,nobarrier,noatime"
fsck-passno: 1
- name: fedora-29
pause: false
elements: