From a49863c63527474382287d242c527c0bb25861c5 Mon Sep 17 00:00:00 2001 From: Vojtech Polasek Date: Fri, 2 Feb 2024 10:05:04 +0100 Subject: [PATCH 1/2] remove /dev/shm partition definition from RHEL 9 kickstarts --- products/rhel9/kickstart/ssg-rhel9-ccn_advanced-ks.cfg | 3 --- products/rhel9/kickstart/ssg-rhel9-ccn_basic-ks.cfg | 3 --- products/rhel9/kickstart/ssg-rhel9-ccn_intermediate-ks.cfg | 3 --- products/rhel9/kickstart/ssg-rhel9-cis-ks.cfg | 3 --- products/rhel9/kickstart/ssg-rhel9-cis_server_l1-ks.cfg | 3 --- products/rhel9/kickstart/ssg-rhel9-cis_workstation_l1-ks.cfg | 3 --- products/rhel9/kickstart/ssg-rhel9-cis_workstation_l2-ks.cfg | 3 --- 7 files changed, 21 deletions(-) diff --git a/products/rhel9/kickstart/ssg-rhel9-ccn_advanced-ks.cfg b/products/rhel9/kickstart/ssg-rhel9-ccn_advanced-ks.cfg index bfbdf1dea9e..8ff39443e84 100644 --- a/products/rhel9/kickstart/ssg-rhel9-ccn_advanced-ks.cfg +++ b/products/rhel9/kickstart/ssg-rhel9-ccn_advanced-ks.cfg @@ -88,9 +88,6 @@ clearpart --linux --initlabel part /boot --fstype=xfs --size=512 part pv.01 --grow --size=1 -# Ensure /dev/shm is a separate partition -part /dev/shm --fstype=tmpfs --fsoptions="nodev,nosuid,noexec" --size=512 - # Create a Logical Volume Management (LVM) group (optional) volgroup VolGroup pv.01 diff --git a/products/rhel9/kickstart/ssg-rhel9-ccn_basic-ks.cfg b/products/rhel9/kickstart/ssg-rhel9-ccn_basic-ks.cfg index 7d2f806bbd2..71d9dec338f 100644 --- a/products/rhel9/kickstart/ssg-rhel9-ccn_basic-ks.cfg +++ b/products/rhel9/kickstart/ssg-rhel9-ccn_basic-ks.cfg @@ -88,9 +88,6 @@ clearpart --linux --initlabel part /boot --fstype=xfs --size=512 part pv.01 --grow --size=1 -# Ensure /dev/shm is a separate partition -part /dev/shm --fstype=tmpfs --fsoptions="nodev,nosuid,noexec" --size=512 - # Create a Logical Volume Management (LVM) group (optional) volgroup VolGroup pv.01 diff --git a/products/rhel9/kickstart/ssg-rhel9-ccn_intermediate-ks.cfg b/products/rhel9/kickstart/ssg-rhel9-ccn_intermediate-ks.cfg index 897189173cd..73d10972a01 100644 --- a/products/rhel9/kickstart/ssg-rhel9-ccn_intermediate-ks.cfg +++ b/products/rhel9/kickstart/ssg-rhel9-ccn_intermediate-ks.cfg @@ -88,9 +88,6 @@ clearpart --linux --initlabel part /boot --fstype=xfs --size=512 part pv.01 --grow --size=1 -# Ensure /dev/shm is a separate partition -part /dev/shm --fstype=tmpfs --fsoptions="nodev,nosuid,noexec" --size=512 - # Create a Logical Volume Management (LVM) group (optional) volgroup VolGroup pv.01 diff --git a/products/rhel9/kickstart/ssg-rhel9-cis-ks.cfg b/products/rhel9/kickstart/ssg-rhel9-cis-ks.cfg index 6e8cc9158b9..e1344a023e7 100644 --- a/products/rhel9/kickstart/ssg-rhel9-cis-ks.cfg +++ b/products/rhel9/kickstart/ssg-rhel9-cis-ks.cfg @@ -91,9 +91,6 @@ clearpart --linux --initlabel part /boot --fstype=xfs --size=512 part pv.01 --grow --size=1 -# Ensure /dev/shm is a separate partition -part /dev/shm --fstype=tmpfs --fsoptions="nodev,nosuid,noexec" --size=512 - # Create a Logical Volume Management (LVM) group (optional) volgroup VolGroup pv.01 diff --git a/products/rhel9/kickstart/ssg-rhel9-cis_server_l1-ks.cfg b/products/rhel9/kickstart/ssg-rhel9-cis_server_l1-ks.cfg index bf6ec98c286..198082c2e83 100644 --- a/products/rhel9/kickstart/ssg-rhel9-cis_server_l1-ks.cfg +++ b/products/rhel9/kickstart/ssg-rhel9-cis_server_l1-ks.cfg @@ -91,9 +91,6 @@ clearpart --linux --initlabel part /boot --fstype=xfs --size=512 part pv.01 --grow --size=1 -# Ensure /dev/shm is a separate partition -part /dev/shm --fstype=tmpfs --fsoptions="nodev,nosuid,noexec" --size=512 - # Create a Logical Volume Management (LVM) group (optional) volgroup VolGroup pv.01 diff --git a/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l1-ks.cfg b/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l1-ks.cfg index c3c62ea001b..9295710e194 100644 --- a/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l1-ks.cfg +++ b/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l1-ks.cfg @@ -91,9 +91,6 @@ clearpart --linux --initlabel part /boot --fstype=xfs --size=512 part pv.01 --grow --size=1 -# Ensure /dev/shm is a separate partition -part /dev/shm --fstype=tmpfs --fsoptions="nodev,nosuid,noexec" --size=512 - # Create a Logical Volume Management (LVM) group (optional) volgroup VolGroup pv.01 diff --git a/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l2-ks.cfg b/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l2-ks.cfg index 0903e76efb8..51dc4dd62fc 100644 --- a/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l2-ks.cfg +++ b/products/rhel9/kickstart/ssg-rhel9-cis_workstation_l2-ks.cfg @@ -91,9 +91,6 @@ clearpart --linux --initlabel part /boot --fstype=xfs --size=512 part pv.01 --grow --size=1 -# Ensure /dev/shm is a separate partition -part /dev/shm --fstype=tmpfs --fsoptions="nodev,nosuid,noexec" --size=512 - # Create a Logical Volume Management (LVM) group (optional) volgroup VolGroup pv.01 From 0fead285c3d2fe013cf1996327f2da82f5993b27 Mon Sep 17 00:00:00 2001 From: Vojtech Polasek Date: Fri, 2 Feb 2024 10:07:34 +0100 Subject: [PATCH 2/2] remove /dev/shm partition definition from RHEL 7 kickstarts --- products/rhel7/kickstart/ssg-rhel7-cis-ks.cfg | 2 -- products/rhel7/kickstart/ssg-rhel7-cis_server_l1-ks.cfg | 2 -- products/rhel7/kickstart/ssg-rhel7-cis_workstation_l1-ks.cfg | 2 -- products/rhel7/kickstart/ssg-rhel7-cis_workstation_l2-ks.cfg | 2 -- 4 files changed, 8 deletions(-) diff --git a/products/rhel7/kickstart/ssg-rhel7-cis-ks.cfg b/products/rhel7/kickstart/ssg-rhel7-cis-ks.cfg index 04438000dae..9f75122e4f8 100644 --- a/products/rhel7/kickstart/ssg-rhel7-cis-ks.cfg +++ b/products/rhel7/kickstart/ssg-rhel7-cis-ks.cfg @@ -117,8 +117,6 @@ logvol /var --fstype=xfs --name=var --vgname=VolGroup --size=2048 logvol /var/log --fstype=xfs --name=varlog --vgname=VolGroup --size=1024 # Ensure /var/log/audit Located On Separate Partition logvol /var/log/audit --fstype=xfs --name=varlogaudit --vgname=VolGroup --size=512 -# Ensure /dev/shm Located on Separate Partition -logvol /dev/shm --name=devshm --vgname=VolGroup --size=512 --fsoptions="nodev,nosuid,noexec" logvol swap --name=swap --vgname=VolGroup --size=2016 diff --git a/products/rhel7/kickstart/ssg-rhel7-cis_server_l1-ks.cfg b/products/rhel7/kickstart/ssg-rhel7-cis_server_l1-ks.cfg index 3e514f66e7b..0e203349c8a 100644 --- a/products/rhel7/kickstart/ssg-rhel7-cis_server_l1-ks.cfg +++ b/products/rhel7/kickstart/ssg-rhel7-cis_server_l1-ks.cfg @@ -117,8 +117,6 @@ logvol /var --fstype=xfs --name=var --vgname=VolGroup --size=2048 logvol /var/log --fstype=xfs --name=varlog --vgname=VolGroup --size=1024 # Ensure /var/log/audit Located On Separate Partition logvol /var/log/audit --fstype=xfs --name=varlogaudit --vgname=VolGroup --size=512 -# Ensure /dev/shm Located on Separate Partition -logvol /dev/shm --name=devshm --vgname=VolGroup --size=512 --fsoptions="nodev,nosuid,noexec" logvol swap --name=swap --vgname=VolGroup --size=2016 diff --git a/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l1-ks.cfg b/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l1-ks.cfg index 6a5eb076523..480ee026b95 100644 --- a/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l1-ks.cfg +++ b/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l1-ks.cfg @@ -117,8 +117,6 @@ logvol /var --fstype=xfs --name=var --vgname=VolGroup --size=2048 logvol /var/log --fstype=xfs --name=varlog --vgname=VolGroup --size=1024 # Ensure /var/log/audit Located On Separate Partition logvol /var/log/audit --fstype=xfs --name=varlogaudit --vgname=VolGroup --size=512 -# Ensure /dev/shm Located on Separate Partition -logvol /dev/shm --name=devshm --vgname=VolGroup --size=512 --fsoptions="nodev,nosuid,noexec" logvol swap --name=swap --vgname=VolGroup --size=2016 diff --git a/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l2-ks.cfg b/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l2-ks.cfg index 867f5d710a6..6721863f6b0 100644 --- a/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l2-ks.cfg +++ b/products/rhel7/kickstart/ssg-rhel7-cis_workstation_l2-ks.cfg @@ -117,8 +117,6 @@ logvol /var --fstype=xfs --name=var --vgname=VolGroup --size=2048 logvol /var/log --fstype=xfs --name=varlog --vgname=VolGroup --size=1024 # Ensure /var/log/audit Located On Separate Partition logvol /var/log/audit --fstype=xfs --name=varlogaudit --vgname=VolGroup --size=512 -# Ensure /dev/shm Located on Separate Partition -logvol /dev/shm --name=devshm --vgname=VolGroup --size=512 --fsoptions="nodev,nosuid,noexec" logvol swap --name=swap --vgname=VolGroup --size=2016