all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unable to get (menu-entries (...)) to work properly
@ 2017-04-09  7:36 dian_cecht
  2017-04-09  7:59 ` Thomas Danckaert
  0 siblings, 1 reply; 7+ messages in thread
From: dian_cecht @ 2017-04-09  7:36 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 978 bytes --]

So I'm trying to define a new menu-entry for my desktop system using
GuixSD's system config. I've ran into an interesting problem that I'm
not sure how to resolve. Forgive any formatting issues here, I'm having
to hand-copy this over from a VM I'm using to test everything. I know
it's this piece of code that is acting up since this is a recent
addition to an already working config. Replacing the actual
(menu-entry ...) with '() doesn't cause any errors, fwiw.

(bootloader (grub-configuration (device "/dev/sda")
                                (menu-entries
                                 (menu-entry
                                  (label "Desktop")
                                  (linux "/boot/kernel")
                                  (linux-arguments "")
                                  (initrd "/boot/initramfs")))))

This constantly throws errors that I can't sort out. Attached (if I do
it properly with this new email client) is a screenshot of the error.

[-- Attachment #2: 2017-04-09-003333_720x400_scrot.png --]
[-- Type: image/png, Size: 29862 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to get (menu-entries (...)) to work properly
  2017-04-09  7:36 Unable to get (menu-entries (...)) to work properly dian_cecht
@ 2017-04-09  7:59 ` Thomas Danckaert
  2017-04-09  8:05   ` Mathieu Othacehe
  2017-04-09  8:17   ` dian_cecht
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Danckaert @ 2017-04-09  7:59 UTC (permalink / raw)
  To: dian_cecht; +Cc: help-guix

From: <dian_cecht@zoho.com>
Subject: Unable to get (menu-entries (...)) to work properly
Date: Sun, 9 Apr 2017 00:36:42 -0700

> (bootloader (grub-configuration (device "/dev/sda")
>                                 (menu-entries
>                                  (menu-entry
>                                   (label "Desktop")
>                                   (linux "/boot/kernel")
>                                   (linux-arguments "")
>                                   (initrd "/boot/initramfs")))))
> 
> This constantly throws errors that I can't sort out. Attached (if I do
> it properly with this new email client) is a screenshot of the error.

I think `menu-entries' should be a list.  Try

(menu-entries (list (menu-entry [...])))

Thomas

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to get (menu-entries (...)) to work properly
  2017-04-09  7:59 ` Thomas Danckaert
@ 2017-04-09  8:05   ` Mathieu Othacehe
  2017-04-09  8:17   ` dian_cecht
  1 sibling, 0 replies; 7+ messages in thread
From: Mathieu Othacehe @ 2017-04-09  8:05 UTC (permalink / raw)
  To: Thomas Danckaert; +Cc: help-guix


Hi,

> I think `menu-entries' should be a list.  Try
>
> (menu-entries (list (menu-entry [...])))

Thomas is right, I just tried it with the following configuration and it
works for me :

--8<---------------cut here---------------start------------->8---
(bootloader (grub-configuration (device "/dev/sda")
                                (timeout 1)
                                (menu-entries
                                 (list (menu-entry
                                        (label "test")
                                        (initrd "/boot/inittest")
                                        (linux "/boot/vmtest"))))))
--8<---------------cut here---------------end--------------->8---

Mathieu

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to get (menu-entries (...)) to work properly
  2017-04-09  7:59 ` Thomas Danckaert
  2017-04-09  8:05   ` Mathieu Othacehe
@ 2017-04-09  8:17   ` dian_cecht
  2017-04-09  8:25     ` dian_cecht
  2017-04-09  9:21     ` Thomas Danckaert
  1 sibling, 2 replies; 7+ messages in thread
From: dian_cecht @ 2017-04-09  8:17 UTC (permalink / raw)
  To: Thomas Danckaert, help-guix

[-- Attachment #1: Type: text/plain, Size: 978 bytes --]

On Sun, 09 Apr 2017 09:59:07 +0200 (CEST)
Thomas Danckaert <post@thomasdanckaert.be> wrote:

> From: <dian_cecht@zoho.com>
> Subject: Unable to get (menu-entries (...)) to work properly
> Date: Sun, 9 Apr 2017 00:36:42 -0700
> 
> > (bootloader (grub-configuration (device "/dev/sda")
> >                                 (menu-entries
> >                                  (menu-entry
> >                                   (label "Desktop")
> >                                   (linux "/boot/kernel")
> >                                   (linux-arguments "")
> >                                   (initrd "/boot/initramfs")))))
> > 
> > This constantly throws errors that I can't sort out. Attached (if I
> > do it properly with this new email client) is a screenshot of the
> > error.  
> 
> I think `menu-entries' should be a list.  Try
> 
> (menu-entries (list (menu-entry [...])))
> 
> Thomas

I tried that and I'm still getting an error. Attached is the related
screenshot.

[-- Attachment #2: 2017-04-09-011544_720x400_scrot.png --]
[-- Type: image/png, Size: 23234 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to get (menu-entries (...)) to work properly
  2017-04-09  8:17   ` dian_cecht
@ 2017-04-09  8:25     ` dian_cecht
  2017-04-09  9:21     ` Thomas Danckaert
  1 sibling, 0 replies; 7+ messages in thread
From: dian_cecht @ 2017-04-09  8:25 UTC (permalink / raw)
  To: help-guix

On Sun, 9 Apr 2017 01:17:10 -0700
<dian_cecht@zoho.com> wrote:

> On Sun, 09 Apr 2017 09:59:07 +0200 (CEST)
> Thomas Danckaert <post@thomasdanckaert.be> wrote:
> 
> > From: <dian_cecht@zoho.com>
> > Subject: Unable to get (menu-entries (...)) to work properly
> > Date: Sun, 9 Apr 2017 00:36:42 -0700
> >   
> > > (bootloader (grub-configuration (device "/dev/sda")
> > >                                 (menu-entries
> > >                                  (menu-entry
> > >                                   (label "Desktop")
> > >                                   (linux "/boot/kernel")
> > >                                   (linux-arguments "")
> > >                                   (initrd "/boot/initramfs")))))
> > > 
> > > This constantly throws errors that I can't sort out. Attached (if
> > > I do it properly with this new email client) is a screenshot of
> > > the error.    
> > 
> > I think `menu-entries' should be a list.  Try
> > 
> > (menu-entries (list (menu-entry [...])))
> > 
> > Thomas  
> 
> I tried that and I'm still getting an error. Attached is the related
> screenshot.

Nevermind. Apparently system reconfigure craps itself when
(linux-arguments ...) is passed an empty string.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to get (menu-entries (...)) to work properly
  2017-04-09  8:17   ` dian_cecht
  2017-04-09  8:25     ` dian_cecht
@ 2017-04-09  9:21     ` Thomas Danckaert
  2017-04-10 12:47       ` Ludovic Courtès
  1 sibling, 1 reply; 7+ messages in thread
From: Thomas Danckaert @ 2017-04-09  9:21 UTC (permalink / raw)
  To: dian_cecht; +Cc: help-guix

From: <dian_cecht@zoho.com>
Subject: Re: Unable to get (menu-entries (...)) to work properly
Date: Sun, 9 Apr 2017 01:17:10 -0700

> I tried that and I'm still getting an error. Attached is the related
> screenshot.

The field `linux-arguments' in your menu-entry should also be a list 
(your example had an empty string).  If you don't want to specify any 
arguments, you can also  leave it out (the default is an empty list.  
Otherwise, see this example from the manual:

      (menu-entry
        (label "The Other Distro")
        (linux "/boot/old/vmlinux-2.6.32")
        (linux-arguments '("root=/dev/sda2"))
        (initrd "/boot/old/initrd"))

Thomas

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Unable to get (menu-entries (...)) to work properly
  2017-04-09  9:21     ` Thomas Danckaert
@ 2017-04-10 12:47       ` Ludovic Courtès
  0 siblings, 0 replies; 7+ messages in thread
From: Ludovic Courtès @ 2017-04-10 12:47 UTC (permalink / raw)
  To: Thomas Danckaert; +Cc: help-guix

Hi,

Thomas Danckaert <post@thomasdanckaert.be> skribis:

> From: <dian_cecht@zoho.com>
> Subject: Re: Unable to get (menu-entries (...)) to work properly
> Date: Sun, 9 Apr 2017 01:17:10 -0700
>
>> I tried that and I'm still getting an error. Attached is the related
>> screenshot.
>
> The field `linux-arguments' in your menu-entry should also be a list

As a rule of thumb, dian_cecht, anytime something has a plural name,
then it’s very likely a list.

HTH,
Ludo’.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-10 12:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-09  7:36 Unable to get (menu-entries (...)) to work properly dian_cecht
2017-04-09  7:59 ` Thomas Danckaert
2017-04-09  8:05   ` Mathieu Othacehe
2017-04-09  8:17   ` dian_cecht
2017-04-09  8:25     ` dian_cecht
2017-04-09  9:21     ` Thomas Danckaert
2017-04-10 12:47       ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.