From 71849ab1ff8f33de5d209134d7d39e62f4b2ed88 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Mon, 19 Feb 2018 07:19:36 +0100 Subject: [PATCH] Create /opt FS --- el7.ks | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/el7.ks b/el7.ks index b85b64b..b16b80f 100644 --- a/el7.ks +++ b/el7.ks @@ -79,7 +79,7 @@ htop touch /tmp/ks.partitions # Select first drive -main_drive=$(list-harddrives | awk '$2>=15360 {print $1; nextfile}') +main_drive=$(list-harddrives | awk '$2>=16900 {print $1; nextfile}') ignore=$(echo $(list-harddrives | awk '$1!="'$main_drive'" {print $1}') | sed -e 's| |,|g') [ ! -z "$ignore" ] && echo "ignoredisk --drives $ignore" >> /tmp/ks.partitions cat << _EOF >> /tmp/ks.partitions @@ -87,9 +87,10 @@ clearpart --all --initlabel --drives $main_drive part /boot --fstype xfs --size 1024 --ondrive $main_drive part pv.2 --size 17920 --grow --ondrive $main_drive volgroup main --pesize 4096 pv.2 -logvol / --fstype xfs --name root --vgname main --size 5120 +logvol / --fstype xfs --name root --vgname main --size 4096 logvol /var --fstype xfs --name var --vgname main --size 5120 logvol /tmp --fstype xfs --name tmp --vgname main --size 1024 +logvol /opt --fstype xfs --name opt --vgname main --size 5120 logvol swap --fstype swap --name swap --vgname main --size 512 _EOF