format ext4 options for cloud-init?

Viewed 15

I want to specified some mkfs.ext4 options like reserved-blocks-percentage=0 in the cloud-init config file but don't find a possibility. Someone has already try it ?

Here the part of file, this is a filesystem direct on disk (vmware) :

    # disk 2
    - type: disk
      id: opt-disk
      ptable: gpt
      path: /dev/sdb
      preserve: false
    - id: opt-format
      type: format
      fstype: ext4
      volume: opt-disk
    - id: opt-mount
      type: mount
      path: /opt
      device: opt-format

There exists a property like fsoptions: xxx of something ? Thanks

1 Answers

The documentation for creating filesystems on cloud-init is here, see the fs_setup key.

However, your example keys don't like cloud-init keys.

Are you sure you're talking about cloud-init specifically? Or maybe you're asking about something else?

Related