From c6c2b1284c06170cd3591da46a0d085336617f2e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 20 Oct 2016 15:16:58 +0200 Subject: [PATCH] unattended and remove /var/log Also reduce minimum size to 15GB --- el7.ks | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/el7.ks b/el7.ks index 13b069a..041e38b 100644 --- a/el7.ks +++ b/el7.ks @@ -1,6 +1,6 @@ auth --enableshadow --passalgo=sha512 url --url="http://mirror.centos.org/centos/7/os/x86_64" -text +cmdline skipx timezone Europe/Paris --isUtc keyboard --vckeymap=fr-oss --xlayouts='fr (oss)' @@ -77,7 +77,7 @@ lsof touch /tmp/ks.partitions # Select first drive -main_drive=$(list-harddrives | awk '$2>=20480 {print $1; nextfile}') +main_drive=$(list-harddrives | awk '$2>=15360 {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 @@ -86,8 +86,7 @@ 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 /var/log --fstype xfs --name log --vgname main --size 5120 -logvol /var --fstype xfs --name log --vgname main --size 5120 +logvol /var --fstype xfs --name var --vgname main --size 5120 logvol /tmp --fstype xfs --name tmp --vgname main --size 1024 logvol swap --fstype swap --name swap --vgname main --size 512 _EOF