unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Error in config.scm
@ 2016-06-08 23:18 Kete Foy
  2016-06-09  0:34 ` Leo Famulari
  2016-06-09  0:39 ` Leo Famulari
  0 siblings, 2 replies; 5+ messages in thread
From: Kete Foy @ 2016-06-08 23:18 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 827 bytes --]

I got this error when trying to initialize the guix system:
/mnt/etc/config.scm:8:0: error: source expression failed to match any
pattern

My config.scm is available at http://kete.ninth.su/config.scm.txt.
What I tried was changing the sda1 to sda since the template says sdX
and not something like sdXY. It didn't make a difference.

I made sure I used the label /my-root/ by looking at the history of
commands. I made the ext4 filesystems on both partitions (one after
luksOpen).

The comment is blank/nil. This config worked before with minor changes.
It failed when guix tried to install Grub on the entire encrypted root
because as some know, that is not supported yet.

I am on freenode, too.
-- 
https://emailselfdefense.fsf.org
Key fingerprint = D7E9 5431 9C95 097F C314  C2A2 DD8C 15BD 0168 5E3A


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* Re: Error in config.scm
  2016-06-08 23:18 Error in config.scm Kete Foy
@ 2016-06-09  0:34 ` Leo Famulari
  2016-06-09  0:39 ` Leo Famulari
  1 sibling, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2016-06-09  0:34 UTC (permalink / raw)
  To: Kete Foy; +Cc: help-guix

On Wed, Jun 08, 2016 at 11:18:39PM +0000, Kete Foy wrote:
> I got this error when trying to initialize the guix system:
> /mnt/etc/config.scm:8:0: error: source expression failed to match any
> pattern

You have to provide a list of mapped-devices, like this:

(mapped-devices (list (mapped-device
                        (source ...))))

The example in the manual is a too subtle, in my opinion.

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

* Re: Error in config.scm
  2016-06-08 23:18 Error in config.scm Kete Foy
  2016-06-09  0:34 ` Leo Famulari
@ 2016-06-09  0:39 ` Leo Famulari
  2016-06-09  1:44   ` Kete Foy
  2016-06-09  7:58   ` Ludovic Courtès
  1 sibling, 2 replies; 5+ messages in thread
From: Leo Famulari @ 2016-06-09  0:39 UTC (permalink / raw)
  To: Kete Foy; +Cc: help-guix

On Wed, Jun 08, 2016 at 11:18:39PM +0000, Kete Foy wrote:
> I got this error when trying to initialize the guix system:
> /mnt/etc/config.scm:8:0: error: source expression failed to match any
> pattern

Also, I've never tried having two file-system sections, but I bet that
is causing a problem as well.

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

* Re: Error in config.scm
  2016-06-09  0:39 ` Leo Famulari
@ 2016-06-09  1:44   ` Kete Foy
  2016-06-09  7:58   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Kete Foy @ 2016-06-09  1:44 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 658 bytes --]

Thanks, you're right. Good catches—I made both typos while manually
copying from here:
https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00964.html.
guix system init is pulling sources, now.

Leo Famulari:
> On Wed, Jun 08, 2016 at 11:18:39PM +0000, Kete Foy wrote:
>> I got this error when trying to initialize the guix system:
>> /mnt/etc/config.scm:8:0: error: source expression failed to match any
>> pattern
> 
> Also, I've never tried having two file-system sections, but I bet that
> is causing a problem as well.
> 

-- 
https://emailselfdefense.fsf.org
Key fingerprint = D7E9 5431 9C95 097F C314  C2A2 DD8C 15BD 0168 5E3A


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* Re: Error in config.scm
  2016-06-09  0:39 ` Leo Famulari
  2016-06-09  1:44   ` Kete Foy
@ 2016-06-09  7:58   ` Ludovic Courtès
  1 sibling, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-06-09  7:58 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix

Leo Famulari <leo@famulari.name> skribis:

> On Wed, Jun 08, 2016 at 11:18:39PM +0000, Kete Foy wrote:
>> I got this error when trying to initialize the guix system:
>> /mnt/etc/config.scm:8:0: error: source expression failed to match any
>> pattern
>
> Also, I've never tried having two file-system sections, but I bet that
> is causing a problem as well.

  (operating-system (file-systems foo) (file-systems bar))

is equivalent to:

  (operating-system (file-systems bar))

Ideally it should raise an error.

Ludo'.

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

end of thread, other threads:[~2016-06-09  7:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-08 23:18 Error in config.scm Kete Foy
2016-06-09  0:34 ` Leo Famulari
2016-06-09  0:39 ` Leo Famulari
2016-06-09  1:44   ` Kete Foy
2016-06-09  7:58   ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).