From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: system docker-image needs file-system Date: Thu, 16 Jan 2020 09:31:40 +0200 Message-ID: <20200116073140.GN858@E5400> References: <6508D976-7434-4D82-8B95-453A91920228@lepiller.eu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="b/Q3JWIUAuLE0ZFy" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49976) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irzdZ-0000mG-Ux for help-guix@gnu.org; Thu, 16 Jan 2020 02:32:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irzdV-0003UV-Uv for help-guix@gnu.org; Thu, 16 Jan 2020 02:32:17 -0500 Received: from flashner.co.il ([178.62.234.194]:58852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1irzdV-0003Tf-Mq for help-guix@gnu.org; Thu, 16 Jan 2020 02:32:13 -0500 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: jimmy@thrasibule.mx Cc: help-guix@gnu.org --b/Q3JWIUAuLE0ZFy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 15, 2020 at 11:43:25PM +0100, Jimmy Thrasibule wrote: > I got it working by using >=20 >=20 > (bootloader (bootloader-configuration > (bootloader grub-efi-bootloader) > (target "noop"))) >=20 > (file-systems (list (file-system > (device "noop") > (mount-point "/") > (type "noop")))) >=20 >=20 > Your suggestion seems to be working for (file-systems) but not (bootloade= r): >=20 > Wrong type argument in position 1 (expecting struct): #f Here's what I typically use for my guix system containers: (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "does-not-matter"))) (file-systems %base-file-systems) ;; No firmware for VMs. (firmware '()) ;; We don't need any packages inside the container. (packages '()) Based on other discussions, it seems that (bootloader #f) may also work. >=20 >=20 > Le mer. 15 janv. 2020 =C3=A0 21:19, Julien Lepiller a > =C3=A9crit : >=20 > > Le 15 janvier 2020 15:01:18 GMT-05:00, Josh Marshall < > > joshua.r.marshall.1991@gmail.com> a =C3=A9crit : > > >I'll second this. It is one of my expected use cases. > > > > > >On Wed, Jan 15, 2020, 13:32 Jimmy Thrasibule > > > > > >wrote: > > > > > >> Hi, > > >> > > >> I'm trying to use Guix in order to create a Docker image. However, > > >I'm > > >> forced to set both ``bootloader`` and ``file-systems`` initializers: > > >> > > >> system.scm:29:0: error: missing field initializers (bootloader > > >> file-systems) > > >> > > >> For a Docker image this is quite unexpected. I'm wondering whether > > >there is > > >> a way to bypass this limitation? > > >> > > >> Regards, > > >> Jimmy > > >> > > > > Not sure if that will work, but have you tried: > > > > (bootloader #f) > > (file-systems '()) > > > > ? > > > > --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --b/Q3JWIUAuLE0ZFy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl4gEVYACgkQQarn3Mo9 g1GlmBAAwgxG7lhP5XuW582J3JGrkFKEKByEk85WYONJ/Hf6aZn9j2sLLyYUFz9l 4JfRIp9rm75FYHTf2h+5AS0DNa4N/KaMJsqwaFZl/5fJhTvLMQ4xsesZ5FCP5JNW 1VzltkdhIFFskae2cbo2/HLLvtq2bPvYd1A3weSb8U/2lPdD7rFSSEXgHaFXARIY yPh4rHsplPCVRIeA6DfVVDIvIswb3id3b9zex8JDWkUYPqZRv4sNi7O35xX4rqh9 ubVp/bDlmoCZpa2iwcYodCFVwubT9sH6qCS42m7QR5OqiKdifKJ2aofCHX5rz4Eb 3FreiV92yWvuQYGz60gD4M2F9TCTmS2tvwm5Z6zxw57drMx6iODhxtk5SJ3QaElE aC6dCK9tjEVePIt5NnvHx+DdCEvsK5XCxQ/cNqICAbz4VH9nOEePVczS/1Gay6ZG dyT8RlVSSx1+/GunZDclAcRmRcc5+yzqX9eT5LCBdIoocLRKjmL7FfdkLzUQLkkq ZdCB8755H8GxC084fWixAV3+wEBWz20RC1q7Be6J2CconpxJ3DUCkh3OfjZFI2eq +ntuY284Mt5XAjQWv71oOt/63dr55WsPMnk1HZ7vxhaxDS5akmwUHJj/zGJlaxng OiV1ozvLMAknYHEcozs3e0kCdSbyhs15lpk2sXY2AfC6QKr0xRw= =v/YQ -----END PGP SIGNATURE----- --b/Q3JWIUAuLE0ZFy--