Re: Dynamic allocation of swap not working.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux