guix-devel
[Top][All Lists]
Advanced

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

Re: initrd: why do we need static linking?


From: raingloom
Subject: Re: initrd: why do we need static linking?
Date: Tue, 5 May 2020 21:59:48 +0200

On Tue, 05 May 2020 11:33:17 +0200
Ludovic Courtès <address@hidden> wrote:

> Hi,
> 
> Ricardo Wurmus <address@hidden> skribis:
> 
> > why do we need to link packages statically to include them in the
> > initrd?  Can’t we just copy the package closure into the initrd?  
> 
> You can refer to any package in the initrd gexp and its whole closure
> is automatically included in the initrd.
> 
> However, to minimize the size of the initrd (it must fit in memory,
> uncompressed), we typically use stripped statically-linked packages.
> 
> HTH!
> 
> Ludo’.
> 

It'd actually be nice if static linking could be used in places other
than the initrd. I'm experimenting with some old resource constrained
machines, and it made me realize just how much space even a basic `guix
pull` can take up.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]