rootio

command
v0.0.0-...-2a7c298 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

README

quay.io/tinkerbell/actions/rootio:latest

This action can be used in a variety of ways, however its core functionality is the management of disks. The action parses the metadata and will partition, format and mount disks

The below example will use the same action in three ways, to "partition" followed by "formating" and finally mounting the disks. All of the different commands below partition/format/mount, will have their actions determined by the contents of the storage section in the metadata refer to the Customer Partitioning and RAID documentation for more information.

actions:
- name: "disk-wipe-partition"
  image: quay.io/tinkerbell/actions/rootio:latest
  timeout: 90
  command: ["partition"]
  environment:
    MIRROR_HOST: 192.168.1.2
- name: "format"
  image: quay.io/tinkerbell/actions/rootio:latest
  timeout: 90
  command: ["format"]
  environment:
    MIRROR_HOST: 192.168.1.2
- name: "mount"
  image: quay.io/tinkerbell/actions/rootio:latest
  timeout: 90
  command: ["mount"]
  environment:
    MIRROR_HOST: 192.168.1.2

Advanced

For certain use-cases we may need to use MBR support, examples being VMware vSphere and it's installer. In order to support this, we can pass an environment variable to rootio for partition options.

actions:
- name: "disk-wipe-partition"
  image: quay.io/tinkerbell/actions/rootio:latest
  timeout: 90
  command: ["partition"]
  environment:
    MIRROR_HOST: 192.168.1.2
    MBR: true

This also supports an extended version of CPR:

"storage": {
    "disks": [
      {
        "device": "/dev/sdb",
        "partitions": [
          {
            "label": "FAT32_ACTIVE",
            "number": 1,
            "size": 0
          }
        ],
        "wipe_table": true
      }
    ],
    "filesystems": [
      {
        "mount": {
          "create": {
            "options": ["-L", "ROOT"]
          },
          "device": "/dev/sdb1",
          "format": "vfat",
          "point": "/"
        }
      }
    ]
  }

Where labels FAT32/Linux can be appended with _ACTIVE to make them a bootable partition.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL