<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">If i do not have my disk partitioning (for the purpose of dynamically calculating swap, note my logic is bit flawed for dynamic calculation, yes i divided it by a hardcoded value, but this was to test if it works) in %pre and have it outside, this works.<div class=""><br class=""></div><div class="">OS is Redhat 6.6</div><div class=""><div class=""><br class=""><div><div class="">On Jan 29, 2016, at 9:36 AM, <a href="mailto:kickstart-list-request@redhat.com" class="">kickstart-list-request@redhat.com</a> wrote:</div><br class="Apple-interchange-newline"><div class="">Send Kickstart-list mailing list submissions to<br class=""><span class="Apple-tab-span" style="white-space:pre">     </span><a href="mailto:kickstart-list@redhat.com" class="">kickstart-list@redhat.com</a><br class=""><br class="">To subscribe or unsubscribe via the World Wide Web, visit<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span>https://www.redhat.com/mailman/listinfo/kickstart-list<br class="">or, via email, send a message with subject or body 'help' to<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>kickstart-list-request@redhat.com<br class=""><br class="">You can reach the person managing the list at<br class=""><span class="Apple-tab-span" style="white-space:pre">       </span>kickstart-list-owner@redhat.com<br class=""><br class="">When replying, please edit your Subject line so it is more specific<br class="">than "Re: Contents of Kickstart-list digest..."<br class="">Today's Topics:<br class=""><br class="">   1. Re: Kickstart-list Digest, Vol 137, Issue 1 (Abhijit Das)<br class=""><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Abhijit Das <abhijitd@apple.com><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: Kickstart-list Digest, Vol 137, Issue 1</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">January 29, 2016 at 9:35:50 AM PST<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">kickstart-list@redhat.com<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Discussion list about Kickstart <kickstart-list@redhat.com><br class=""></span></div><br class=""><br class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">@ Arun - I believe it shouldn’t matter where the %pre is located. However, i have tried and the same error.<div class=""><br class=""></div><div class="">@ Chris - I appended —log /tmp/ks-pre.log to %pre but the log file is blank. /ks/anaconda.log tells me that %pre is executed but not .. </div><div class=""><br class=""></div><div class="">Here i have modified %pre</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">%pre --log=/tmp/pre-log</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">#!/bin/bash</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">exec < /dev/tty6 > /dev/tty6 2> /dev/tty6</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">chvt 6</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">disk=`sfdisk -s | head -1 | awk -F':' '{print $1}'`</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">mem=`cat /proc/meminfo | grep MemTotal: | sed 's/^.*MemTotal: \(.*\)kB*$/\1/'`</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">mem_mb=`expr $mem / 2048`</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">allparts=$( sfdisk -d | grep "/dev/"| grep -v "^#" | cut -d ":" -f1 )</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">for part in $allparts</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">do</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class=""> dd if=/dev/zero of=$part bs=512 count=16</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">done</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">cat << EOF > /tmp/disk_partition.sh</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">clearpart --all --drives=$disk</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">part /boot/efi --fstype=efi --grow --maxsize=200 --size=20</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">part /boot --fstype=ext4 --size=500</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">part pv.01 --grow --size=1</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">volgroup VolGroup01 --pesize=4096 pv.01</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup01 --grow --size=1024</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">logvol swap --fstype=swap --name=lv_swap --vgname=VolGroup01 –-size=$mem_mb</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">EOF</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">APIKEY=aea1e3bb412e0e8273340f5e5ec22c33</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">HOSTNAME=$(hostname)</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">curl -s -o /tmp/deploytoken --data "private_token=${APIKEY}&hostname=${HOSTNAME}&message=preinstall_start" <a href="https://1.1.1.1/api/v2/deploy/log/start" class="">https://1.1.1.1/api/v2/deploy/log/start</a></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">chvt 1</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">exec < /dev/tty1 > /dev/tty1 2> /dev/tty1</div><div style="margin: 0px; line-height: normal; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 16px;" class=""><br class=""></div></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""><div class=""><div class="">On Jan 29, 2016, at 9:00 AM, <a href="mailto:kickstart-list-request@redhat.com" class="">kickstart-list-request@redhat.com</a> wrote:</div><br class="Apple-interchange-newline"><div class="">Send Kickstart-list mailing list submissions to<br class=""><span class="Apple-tab-span" style="white-space:pre">       </span><a href="mailto:kickstart-list@redhat.com" class="">kickstart-list@redhat.com</a><br class=""><br class="">To subscribe or unsubscribe via the World Wide Web, visit<br class=""><span class="Apple-tab-span" style="white-space:pre">   </span>https://www.redhat.com/mailman/listinfo/kickstart-list<br class="">or, via email, send a message with subject or body 'help' to<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>kickstart-list-request@redhat.com<br class=""><br class="">You can reach the person managing the list at<br class=""><span class="Apple-tab-span" style="white-space:pre">       </span>kickstart-list-owner@redhat.com<br class=""><br class="">When replying, please edit your Subject line so it is more specific<br class="">than "Re: Contents of Kickstart-list digest..."<br class="">Today's Topics:<br class=""><br class="">   1. Dynamic allocation of swap not working. (Abhijit Das)<br class="">   2. Re: Dynamic allocation of swap not working. (Abhijit Das)<br class="">   3. Re: Dynamic allocation of swap not working. (Arun SAG)<br class="">   4. Re: Dynamic allocation of swap not working. (Chris Lumens)<br class=""><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Abhijit Das <abhijitz@icloud.com><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Dynamic allocation of swap not working.</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">January 28, 2016 at 8:34:49 PM PST<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">kickstart-list@redhat.com<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Discussion list about Kickstart <kickstart-list@redhat.com><br class=""></span></div><br class=""><br class=""><br class="">Trying to dynamically allocate swap<br class=""><br class="">logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup00 --grow --size=1024<br class="">%include /tmp/swap_partition<br class=""><br class="">%pre<br class="">#!/bin/bash<br class="">mem=`cat /proc/meminfo | grep MemTotal: | sed 's/^.*MemTotal: \(.*\)kB*$/\1/'`<br class="">mem_mb=`expr $mem / 1024`<br class="">echo "logvol swap --name=lv_swap --vgname=VolGroup00 –-size=$mem_mb" > /tmp/swap_partition<br class=""><br class="">It throws an error that /tmp/swap_partition is not found. Please advise how should i proceed.<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Abhijit Das <abhijitz@icloud.com><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: Dynamic allocation of swap not working.</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">January 28, 2016 at 9:14:56 PM PST<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">kickstart-list@redhat.com<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Discussion list about Kickstart <kickstart-list@redhat.com><br class=""></span></div><br class=""><br class="">I tried every possible way … still same error, <br class=""><br class="">Here is my command section. <br class=""><br class="">clearpart --linux<br class="">zerombr<br class=""><br class="">part /boot/efi --fstype=efi --grow --maxsize=200 --size=20<br class="">part /boot --fstype=ext4 --size=500<br class="">part pv.008002 --grow --size=1<br class=""><br class="">%include /tmp/disk_partition.cfg<br class=""><br class=""><br class=""><br class=""><br class="">Here is my complete %pre section now.<br class=""><br class="">%pre<br class="">mem=`cat /proc/meminfo | grep MemTotal: | sed 's/^.*MemTotal: \(.*\)kB*$/\1/'`<br class="">mem_mb=`expr $mem / 1024`<br class=""><br class="">cat << EOF > /tmp/disk_partition.cfg<br class="">volgroup VolGroup00 --pesize=4096 pv.008002<br class="">logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup00 --grow --size=1024<br class="">logvol swap --name=lv_swap --vgname=VolGroup00 –-size=$mem_mb<br class="">EOF<br class=""><br class="">sleep 5<br class=""><br class="">exec < /dev/tty6 > /dev/tty6 2> /dev/tty6<br class="">chvt 6<br class=""><br class="">APIKEY=xxxx<br class="">HOSTNAME=$(hostname)<br class="">curl -s -o /tmp/deploytoken --data "private_token=${APIKEY}&hostname=${HOSTNAME}&message=preinstall_start" https://<internal_URL><br class=""><br class="">chvt 1<br class=""><br class=""><br class=""><br class="">On Jan 28, 2016, at 8:34 PM, Abhijit Das <abhijitz@icloud.com> wrote:<br class=""><br class=""><br class="">Trying to dynamically allocate swap<br class=""><br class="">logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup00 --grow --size=1024<br class="">%include /tmp/swap_partition<br class=""><br class="">%pre<br class="">#!/bin/bash<br class="">mem=`cat /proc/meminfo | grep MemTotal: | sed 's/^.*MemTotal: \(.*\)kB*$/\1/'`<br class="">mem_mb=`expr $mem / 1024`<br class="">echo "logvol swap --name=lv_swap --vgname=VolGroup00 –-size=$mem_mb" > /tmp/swap_partition<br class=""><br class="">It throws an error that /tmp/swap_partition is not found. Please advise how should i proceed.<br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Arun SAG <sagarun@gmail.com><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: Dynamic allocation of swap not working.</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">January 28, 2016 at 9:44:53 PM PST<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Discussion list about Kickstart <kickstart-list@redhat.com><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Discussion list about Kickstart <kickstart-list@redhat.com><br class=""></span></div><br class=""><br class="">On Thu, Jan 28, 2016 at 09:14:56PM -0800, Abhijit Das wrote:<br class=""><blockquote type="cite" class="">I tried every possible way … still same error, <br class=""><br class="">Here is my command section. <br class=""><br class="">clearpart --linux<br class="">zerombr<br class=""><br class="">part /boot/efi --fstype=efi --grow --maxsize=200 --size=20<br class="">part /boot --fstype=ext4 --size=500<br class="">part pv.008002 --grow --size=1<br class=""><br class="">%include /tmp/disk_partition.cfg<br class=""><br class=""></blockquote><br class="">Try moving the %include /tmp/disk_partition.cfg below the %pre section in<br class="">your kickstart file<br class=""><br class=""><br class=""><br class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Chris Lumens <clumens@redhat.com><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: Dynamic allocation of swap not working.</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">January 29, 2016 at 8:09:08 AM PST<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">kickstart-list@redhat.com<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(127, 127, 127, 1.0);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Discussion list about Kickstart <kickstart-list@redhat.com><br class=""></span></div><br class=""><br class=""><blockquote type="cite" class="">Trying to dynamically allocate swap<br class=""><br class="">logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup00 --grow --size=1024<br class="">%include /tmp/swap_partition<br class=""><br class="">%pre<br class="">#!/bin/bash<br class="">mem=`cat /proc/meminfo | grep MemTotal: | sed 's/^.*MemTotal: \(.*\)kB*$/\1/'`<br class="">mem_mb=`expr $mem / 1024`<br class="">echo "logvol swap --name=lv_swap --vgname=VolGroup00 ???-size=$mem_mb" > /tmp/swap_partition<br class=""><br class="">It throws an error that /tmp/swap_partition is not found. Please advise how should i proceed.<br class=""></blockquote><br class="">What OS and version?  Are there any other errors in your<br class="">/tmp/anaconda.log or on tty1?<br class=""><br class="">- Chris<br class=""><br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">Kickstart-list mailing list<br class="">Kickstart-list@redhat.com<br class="">https://www.redhat.com/mailman/listinfo/kickstart-list</div></div><br class=""></div></div></div><br class=""><br class="">_______________________________________________<br class="">Kickstart-list mailing list<br class="">Kickstart-list@redhat.com<br class="">https://www.redhat.com/mailman/listinfo/kickstart-list</div></div><br class=""></div></div></body></html>