Chapter 5. Customizing file systems during the image creation By using Insights image builder you can customize your filesystem layouts to set up the desired partitions and sizes during the image creation process. Warning The support to customize filesystem partitions is available for all the image types, except for the Bare metal - Installer (.iso) type. 5.1. Manually configuring partitions during image creation When creating a customized image with Insights image builder, you can customize the system configuration to use manual or automatic partitioning. Use the automatic partitioning, which is the default. Partitions can still be extended or reordered when using manual partitioning. To manually configure the partitioning of the image you are creating, complete the following steps: Prerequisites You have an account on Red Hat Customer Portal with an Insights subscription. You have access to the Insights image builder dashboard. You have already completed the following steps: Image output Target cloud environment Optionally, Registration Procedure On the System Configuration - File system configuration page: You can select Use automatic partitioning or Manually configure partitions for your image file system. Click the Manually configure partitions button. The Configure partitions section opens, showing the configuration based on Red Hat standards and security guides. From the dropdown menu, provide details to configure the partitions: For the Mount point field, select one of the following mount point type options: /app /data /home /opt /srv /tmp /usr /usr/local /var / You can also add an additional path to the Mount point , such as /tmp . For example: /var as a prefix and /tmp as an additional path results in /var/tmp . Note Depending on the Mount point type you choose, the file system type changes to xfs , and so on. For the Minimum size partition field of the file system, enter the desired minimum partition size. In the Minimum size dropdown menu, you can use common size units such as GiB , MiB , or KiB . The default unit is GiB . Note Minimum size means that image builder can still increase the partition sizes, in case they are too small to create a working image. To add more partitions, click the Add partition button. Repeat step 2 for each partition. If you see the following error message: "Duplicate partitions: Only one partition at each mount point can be created.", you can: Click the remove button to remove the duplicated partition. Choose a new mount point for the partition you want to create. After you finish the partitioning configuration, click . Optional: On the Packages page, add packages to your image. Click . On the Name image page, enter a name for your image and click . If you do not enter a name, you can find the image you created by its UUID. On the Review page, review the information. Click the System Configuration tab to review the file system configuration partitioning. Click Create image . After you complete the steps in the Create image wizard, the image builder dashboard is displayed. Insights image builder starts the compose of a RHEL image for the x86_64 architecture. The Insights image builder dashboard opens. You can see details such as the Image UUID, the cloud target environment, the image OS release and the status of the image creation. Note The image build, upload and cloud registration processes can take up to ten minutes to complete. Additional resources Partition Naming Schemes and Mount Points Recommended partitioning scheme Customizing a mount point file system

Commands: