Dynamic allocation of swap not working.

Abhijit Das <[email protected]> Thu, 28 Jan 2016 20:34:49 -0800
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <[email protected]>
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
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list