From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eILej-0007gv-UO for guix-patches@gnu.org; Fri, 24 Nov 2017 16:37:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eILeg-0001Oa-R5 for guix-patches@gnu.org; Fri, 24 Nov 2017 16:37:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:47836) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eILeg-0001OW-Mi for guix-patches@gnu.org; Fri, 24 Nov 2017 16:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eILeg-0001yD-Ef for guix-patches@gnu.org; Fri, 24 Nov 2017 16:37:02 -0500 Subject: [bug#29409] [PATCH] vm: Use os-defined initrd intead of base-initrd. Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <877euhtjkj.fsf@gmail.com> <1511542178-13819-1-git-send-email-m.othacehe@gmail.com> Date: Fri, 24 Nov 2017 22:36:42 +0100 In-Reply-To: <1511542178-13819-1-git-send-email-m.othacehe@gmail.com> (Mathieu Othacehe's message of "Fri, 24 Nov 2017 17:49:38 +0100") Message-ID: <871skn8il1.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe Cc: 29409@debbugs.gnu.org Hello! Mathieu Othacehe skribis: > * gnu/system/vm.scm (system-disk-image, system-qemu-image, > virtualized-operating-system): Replace base-initrd by > (operating-system-initrd os). > > The system produced were always using base-initrd even if the user had > defined a custom initrd based on raw-initrd in the os declaration. [...] > (initrd (lambda (file-systems . rest) > - (apply base-initrd file-systems > + (apply (operating-system-initrd os) > + file-systems > #:volatile-root? #t > #:virtio? #t > rest))) A potential issue is that we don=E2=80=99t know whether the user-provided i= nitrd procedure honors #:volatile-root? et al. Maybe that=E2=80=99s not much of a problem in practice: we can assume that it=E2=80=99s up to the user to do t= he right thing. I=E2=80=99d say go for it and we=E2=80=99ll adjust if/when it=E2=80=99s a p= roblem. Thoughts? Thanks, Ludo=E2=80=99.