|
|
|
@ -79,18 +79,15 @@ htop |
|
|
|
|
touch /tmp/ks.partitions |
|
|
|
|
|
|
|
|
|
# Select first drive |
|
|
|
|
main_drive=$(list-harddrives | awk '$2>=16900 {print $1; nextfile}') |
|
|
|
|
main_drive=$(list-harddrives | awk '$2>=8704 {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 |
|
|
|
|
clearpart --all --initlabel --drives $main_drive |
|
|
|
|
part /boot --fstype xfs --size 1024 --ondrive $main_drive |
|
|
|
|
part pv.2 --size 17920 --grow --ondrive $main_drive |
|
|
|
|
part pv.2 --size 7680 --grow --ondrive $main_drive |
|
|
|
|
volgroup main --pesize 4096 pv.2 |
|
|
|
|
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 / --fstype xfs --name root --vgname main --size 7168 |
|
|
|
|
logvol swap --fstype swap --name swap --vgname main --size 512 |
|
|
|
|
_EOF |
|
|
|
|
|
|
|
|
|