[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: initrd: why do we need static linking?
From: |
Ludovic Courtès |
Subject: |
Re: initrd: why do we need static linking? |
Date: |
Tue, 05 May 2020 11:33:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
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’.