From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qak/M/P7sV7QNQAA0tVLHw (envelope-from ) for ; Tue, 05 May 2020 23:51:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EM5jGP/7sV6eYAAAbx9fmQ (envelope-from ) for ; Tue, 05 May 2020 23:51:27 +0000 Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:470:142::17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A81D3940D35 for ; Tue, 5 May 2020 23:51:24 +0000 (UTC) Received: from localhost ([::1]:51472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jW7LR-0000Nh-2a for larch@yhetil.org; Tue, 05 May 2020 19:51:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW7LI-0000NE-5B for guix-devel@gnu.org; Tue, 05 May 2020 19:51:16 -0400 Received: from mx1.riseup.net ([198.252.153.129]:46612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jW7LH-0006eX-48 for guix-devel@gnu.org; Tue, 05 May 2020 19:51:15 -0400 Received: from bell.riseup.net (unknown [10.0.1.178]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 49GxM53cpSzFfWn for ; Tue, 5 May 2020 16:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1588722673; bh=CW3KOhtknKBRDd7uKpwPXGIG6e/ahKfDUsFhMtF7Nw8=; h=Date:From:To:Subject:In-Reply-To:References:From; b=S0Hd+BXLDW6apUfLF9WB5zSQfE2d5x1aOV/+eN2XWpQKuf6Gp+Y2gF8PZ2DG1cq/L +a2K/MqsJlUQHqHySQxPcwLyuJrsVa58Z5N8c/XkX0BemZvxPY9Cvi/0tK0fGM2WqR smpX6UqvecBhn51Xk83gHHrXRl6C42m2wJe6vqdQ= X-Riseup-User-ID: C0345DE5B775BEBBC3F3CE4B8415AECF2DD2FB258AABABF82B25B15733B05475 Received: from [127.0.0.1] (localhost [127.0.0.1]) by bell.riseup.net (Postfix) with ESMTPSA id 49GxM45xxPzJmgL for ; Tue, 5 May 2020 16:51:12 -0700 (PDT) Date: Tue, 5 May 2020 21:59:48 +0200 From: raingloom To: guix-devel@gnu.org Subject: Re: initrd: why do we need static linking? Message-ID: <20200505215948.3b2c1e2a@riseup.net> In-Reply-To: <87h7wun2ua.fsf@gnu.org> References: <87h7ww438s.fsf@elephly.net> <87h7wun2ua.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/05 19:51:12 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_03_06=1.592, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 X-Spam-Score: -0.71 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=S0Hd+BXL; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 2001:470:142::17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Scan-Result: default: False [-0.71 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.4958373738885]; DWL_DNSWL_BLOCKED(0.00)[riseup.net:dkim,2001:470:142::17:from]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:142::/48:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.12), country: US(-0.00), ip: 2001:470:142::17(-0.50)]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[riseup.net:+]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22989, ipnet:2001:470:142::/48, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; RCVD_COUNT_FIVE(0.00)[6]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[riseup.net:dkim,gnu.org:email,elephly.net:email]; FROM_NEQ_ENVFROM(0.00)[raingloom@riseup.net,guix-devel-bounces@gnu.org]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[guix-devel@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; DNSWL_BLOCKED(0.00)[2001:470:142::17:from]; SUBJECT_ENDS_QUESTION(1.00)[]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: TQM5shdbwP7W On Tue, 05 May 2020 11:33:17 +0200 Ludovic Court=C3=A8s wrote: > Hi, >=20 > Ricardo Wurmus skribis: >=20 > > why do we need to link packages statically to include them in the > > initrd? Can=E2=80=99t we just copy the package closure into the initrd= ? =20 >=20 > You can refer to any package in the initrd gexp and its whole closure > is automatically included in the initrd. >=20 > However, to minimize the size of the initrd (it must fit in memory, > uncompressed), we typically use stripped statically-linked packages. >=20 > HTH! >=20 > Ludo=E2=80=99. >=20 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.