I tried every possible way … still same error, Here is my command section. clearpart --linux zerombr part /boot/efi --fstype=efi --grow --maxsize=200 --size=20 part /boot --fstype=ext4 --size=500 part pv.008002 --grow --size=1 %include /tmp/disk_partition.cfg Here is my complete %pre section now. %pre mem=`cat /proc/meminfo | grep MemTotal: | sed 's/^.*MemTotal: \(.*\)kB*$/\1/'` mem_mb=`expr $mem / 1024` cat << EOF > /tmp/disk_partition.cfg volgroup VolGroup00 --pesize=4096 pv.008002 logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup00 --grow --size=1024 logvol swap --name=lv_swap --vgname=VolGroup00 –-size=$mem_mb EOF sleep 5 exec < /dev/tty6 > /dev/tty6 2> /dev/tty6 chvt 6 APIKEY=xxxx HOSTNAME=$(hostname) curl -s -o /tmp/deploytoken --data "private_token=${APIKEY}&hostname=${HOSTNAME}&message=preinstall_start" https://<internal_URL> chvt 1 On Jan 28, 2016, at 8:34 PM, Abhijit Das <abhijitz@xxxxxxxxxx> wrote: Trying to dynamically allocate swap logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup00 --grow --size=1024 %include /tmp/swap_partition %pre #!/bin/bash mem=`cat /proc/meminfo | grep MemTotal: | sed 's/^.*MemTotal: \(.*\)kB*$/\1/'` mem_mb=`expr $mem / 1024` echo "logvol swap --name=lv_swap --vgname=VolGroup00 –-size=$mem_mb" > /tmp/swap_partition It throws an error that /tmp/swap_partition is not found. Please advise how should i proceed. _______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list