How to format a complete disk, without creating any patition, with a filesystem using kickstart?

Solution In Progress - Updated -

Environment

  • Red Hat Enterprise 8

Issue

  • How to create the XFS file system directly on the block device without creating any partition on it?

Resolution

Example:
Format the /dev/sdc disk with xfs filesystem and mount it on /data

part /data --fstype="xfs" --onpart=sdc

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.