Create /opt FS

master
Daniel Berteaud 7 years ago
parent 0e8efa7d2c
commit 71849ab1ff
  1. 5
      el7.ks

@ -79,7 +79,7 @@ htop
touch /tmp/ks.partitions touch /tmp/ks.partitions
# Select first drive # 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') 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
@ -87,9 +87,10 @@ clearpart --all --initlabel --drives $main_drive
part /boot --fstype xfs --size 1024 --ondrive $main_drive 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 4096
logvol /var --fstype xfs --name var --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 /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 logvol swap --fstype swap --name swap --vgname main --size 512
_EOF _EOF

Loading…
Cancel
Save