diff --git a/docs/templates/template_reference.md b/docs/templates/template_reference.md index 3a0fd9816b37..be0b6799a5eb 100644 --- a/docs/templates/template_reference.md +++ b/docs/templates/template_reference.md @@ -488,7 +488,7 @@ The only way to remediate is to recompile and reinstall the kernel, so no remedi - **min_size** - the minimum recommended partition size, in bytes -- Languages: Anaconda, OVAL, Blueprint +- Languages: Anaconda, OVAL, Blueprint, Kickstart #### mount_option - Checks if a given partition is mounted with a specific option such diff --git a/linux_os/guide/system/software/disk_partitioning/partition_for_dev_shm/rule.yml b/linux_os/guide/system/software/disk_partitioning/partition_for_dev_shm/rule.yml index 406304b07ddd..102d2df72c70 100644 --- a/linux_os/guide/system/software/disk_partitioning/partition_for_dev_shm/rule.yml +++ b/linux_os/guide/system/software/disk_partitioning/partition_for_dev_shm/rule.yml @@ -49,3 +49,4 @@ template: backends: blueprint: 'off' anaconda: 'off' + kickstart: 'off' diff --git a/linux_os/guide/system/software/disk_partitioning/partition_for_var_log/rule.yml b/linux_os/guide/system/software/disk_partitioning/partition_for_var_log/rule.yml index e52a765b4c93..93a76085a3a3 100644 --- a/linux_os/guide/system/software/disk_partitioning/partition_for_var_log/rule.yml +++ b/linux_os/guide/system/software/disk_partitioning/partition_for_var_log/rule.yml @@ -56,5 +56,5 @@ template: name: mount vars: mountpoint: /var/log - min_size: 5368709120 + min_size: 1073741824 {{% endif %}} diff --git a/shared/templates/mount/kickstart.template b/shared/templates/mount/kickstart.template new file mode 100644 index 000000000000..2241f3f6c80b --- /dev/null +++ b/shared/templates/mount/kickstart.template @@ -0,0 +1,3 @@ +# platform = multi_platform_rhel,multi_platform_fedora + +logvol {{{ MOUNTPOINT }}} --fstype=xfs --name={{{ NAME }}} --vgname=VolGroup --size={{{ MIN_SIZE_MB }}} \ No newline at end of file diff --git a/shared/templates/mount/template.py b/shared/templates/mount/template.py index ad9d027b4a16..04f4a8fb10cb 100644 --- a/shared/templates/mount/template.py +++ b/shared/templates/mount/template.py @@ -3,4 +3,7 @@ def preprocess(data, lang): data["pointid"] = ssg.utils.escape_id(data["mountpoint"]) + if "min_size" in data and lang == "kickstart": + data["min_size_mb"] = int(int(data["min_size"]) / 1024 / 1024) + data["name"] = data["mountpoint"].replace("/", "") return data diff --git a/shared/templates/mount/template.yml b/shared/templates/mount/template.yml index c0c7f6fddd30..ee9da98378a9 100644 --- a/shared/templates/mount/template.yml +++ b/shared/templates/mount/template.yml @@ -2,3 +2,4 @@ supported_languages: - anaconda - oval - blueprint + - kickstart