How to change inode_ratio (bytes-per-inode) from within the kickstart script on RHEL 6.9?
How do I change (reduce) inode_ratio (bytes-per-inode from default 16K to 8K) from within the kickstart script on RHEL6.9 ? Basically, I need to increase the number of inodes during installation of the OS right from the kickstart script while creating the ext4 type file partitions.
My /etc/mke2fs.conf has default "inode_ratio = 16384". I tried the following from kickstart "part" line -
part /data --bytes-per-inode=8192 --fstype=ext4 ....
It did not work; bytes-per-inode was still 16K. Now I know that the part "--bytes-per-inode" option is obsolete.
Do I directly change inode_ratio from 16384 to 8192 in /etc/mke2fs.conf file using sed or awk from kickstart script before the "part" lines? I am not sure if the corresponding package (rpm) e2fsprogs that provides /etc/mke2fs.conf file will be installed already at that point.