multiple disk_config files?
andrew bezella
abezella at archive.org
Thu Apr 21 17:30:25 CEST 2016
On Thu, 2016-04-21 at 08:28 -0500, John G Heim wrote:
>
> On 04/21/2016 12:39 AM, Thomas Lange wrote:
> > > For the disk partitioning part, only one file is selected by FAI.
>
> Related question: How do people deal with the size of the swap
> partition? I have machines with similar sized hard drives but wildly
> different amounts of ram. I could write a script to output a class name
> based on the amount of ram in a machine but I already have about a dozen
> different config files and I am reluctant to multiply that.
"dealing with the size of swap" is a somewhat open-ended question, so
i'm not certain if this answer is on target.
setup-storage can size a swapfile to a given percentage of memory.
example snippet from a disk_config:
disk_config sda fstabkey:uuid disklabel:gpt-bios align-at:1M
primary / 512G ext4 defaults,errors=remount-ro
primary swap RAM:110% swap sw
hope that helps...
andy
--
andrew bezella <abezella at archive.org>
Internet Archive
More information about the linux-fai
mailing list