help-guix
[Top][All Lists]
Advanced

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

Re: system docker-image needs file-system


From: Jimmy Thrasibule
Subject: Re: system docker-image needs file-system
Date: Wed, 15 Jan 2020 23:43:25 +0100

I got it working by using


    (bootloader (bootloader-configuration
                 (bootloader grub-efi-bootloader)
                 (target "noop")))

    (file-systems (list (file-system
                         (device "noop")
                         (mount-point "/")
                         (type "noop"))))


Your suggestion seems to be working for (file-systems) but not (bootloader):

    Wrong type argument in position 1 (expecting struct): #f


Le mer. 15 janv. 2020 à 21:19, Julien Lepiller <address@hidden> a
écrit :

> Le 15 janvier 2020 15:01:18 GMT-05:00, Josh Marshall <
> address@hidden> a écrit :
> >I'll second this.  It is one of my expected use cases.
> >
> >On Wed, Jan 15, 2020, 13:32 Jimmy Thrasibule
> ><address@hidden>
> >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 '())
>
> ?
>
>


reply via email to

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