Re: Dynamically sizing swap by memory size?

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

 



>>>>> "Gary" == Gary Jackson <bargle@xxxxxxxxxxxxxx> writes:

Gary> You could try and partition things in %pre with a redirect in to
Gary> fdisk, and give --onpart arguments in the first section when
Gary> setting it up.  The trouble then becomes determining the size of
Gary> memory inside of %pre, since you don't get access to all
Gary> utilities there.

I'm sorta looking at this right now, since it's easy enough to get the
memory size from within the %pre section, just 

       cat /proc/meminfo | grep MemTotal: 

but there's no darn awk included, and the sed on there is stupid.
Time to poke at the busybox man pages for tips, since it doens't seem
to support regexps.

Thanks for the hint.

John





[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