mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-07 02:38:15 +00:00
Dispense with complicated partition scheme
It causes problems, such as unexpected low capacity of filesystems and particularly splitting var causes things like kdump to be infeasible.
This commit is contained in:
@@ -277,15 +277,7 @@ echo "part pv.000997 --grow --asprimary --ondisk=$instdisk --size=18432" >>/tmp/
|
||||
echo "volgroup xcatvg --pesize=4096 pv.000997" >>/tmp/partitionfile
|
||||
echo "logvol swap --name=swap --vgname=xcatvg --recommended" >>/tmp/partitionfile
|
||||
|
||||
if [ "${DISKSIZE}" -lt "62914560" ]
|
||||
then
|
||||
echo "logvol / --fstype=$FSTYPE --name=root --vgname=xcatvg --grow --percent=86" >>/tmp/partitionfile
|
||||
else
|
||||
echo "logvol / --fstype=$FSTYPE --name=root --vgname=xcatvg --grow --size=10240 --maxsize=20480" >>/tmp/partitionfile
|
||||
echo "logvol /var --fstype=$FSTYPE --name=var --vgname=xcatvg --grow --size=4096 --maxsize=8192" >>/tmp/partitionfile
|
||||
echo "logvol /tmp --fstype=$FSTYPE --name=tmp --vgname=xcatvg --grow --size=4096 --maxsize=8192" >>/tmp/partitionfile
|
||||
echo "logvol /home --fstype=$FSTYPE --name=home --vgname=xcatvg --grow --percent=10 --maxsize=10240" >>/tmp/partitionfile
|
||||
fi
|
||||
echo "logvol / --fstype=$FSTYPE --name=root --vgname=xcatvg --grow" >>/tmp/partitionfile
|
||||
|
||||
# Specify "bootloader" configuration in "/tmp/partitionfile" if there is no user customized partition file
|
||||
BOOTLOADER="bootloader"
|
||||
|
Reference in New Issue
Block a user