Dynamic allocation of swap not working.
Chris Lumens
clumens at redhat.com
Fri Jan 29 16:09:08 UTC 2016
> 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
More information about the Kickstart-list
mailing list