Re: Dynamic allocation of swap not working.
Chris Lumens <[email protected]> Fri, 29 Jan 2016 11:09:08 -0500
| 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. What OS and version? Are there any other errors in your /tmp/anaconda.log or on tty1? - Chris