unattended and remove /var/log

Also reduce minimum size to 15GB
master
Daniel Berteaud 8 years ago
parent 1ac9578f06
commit c6c2b1284c
  1. 7
      el7.ks

@ -1,6 +1,6 @@
auth --enableshadow --passalgo=sha512 auth --enableshadow --passalgo=sha512
url --url="http://mirror.centos.org/centos/7/os/x86_64" url --url="http://mirror.centos.org/centos/7/os/x86_64"
text cmdline
skipx skipx
timezone Europe/Paris --isUtc timezone Europe/Paris --isUtc
keyboard --vckeymap=fr-oss --xlayouts='fr (oss)' keyboard --vckeymap=fr-oss --xlayouts='fr (oss)'
@ -77,7 +77,7 @@ lsof
touch /tmp/ks.partitions touch /tmp/ks.partitions
# Select first drive # 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') ignore=$(echo $(list-harddrives | awk '$1!="'$main_drive'" {print $1}') | sed -e 's| |,|g')
[ ! -z "$ignore" ] && echo "ignoredisk --drives $ignore" >> /tmp/ks.partitions [ ! -z "$ignore" ] && echo "ignoredisk --drives $ignore" >> /tmp/ks.partitions
cat << _EOF >> /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 part pv.2 --size 17920 --grow --ondrive $main_drive
volgroup main --pesize 4096 pv.2 volgroup main --pesize 4096 pv.2
logvol / --fstype xfs --name root --vgname main --size 5120 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 var --vgname main --size 5120
logvol /var --fstype xfs --name log --vgname main --size 5120
logvol /tmp --fstype xfs --name tmp --vgname main --size 1024 logvol /tmp --fstype xfs --name tmp --vgname main --size 1024
logvol swap --fstype swap --name swap --vgname main --size 512 logvol swap --fstype swap --name swap --vgname main --size 512
_EOF _EOF

Loading…
Cancel
Save