Re: Error system reconfigure with guix-latest

2018-03-07 Thread Ludovic Courtès
Hi,

Jone  skribis:

> But further in an output I see something, similar to compilation of
> packages (for "ffmpeg" and
> "icecat-52.6.0"), as in Gentoo. Well, that is exactly the output of GCC!
> Possibly, this take time..

If you’re unlucky, substitutes are not available yet from the substitute
servers and thus you end up building things locally:

  https://www.gnu.org/software/guix/manual/html_node/Substitutes.html

You can try adding https://berlin.guixsd.org to --substitute-urls.  This
is a separate build farm that may be faster than hydra.gnu.org.

Ludo’.



Re: Error system reconfigure with guix-latest

2018-03-06 Thread Jone
Ok, with Your version of a config 'reconfigure' starts, normal output. Also
I added some more packages
to the selected.

But further in an output I see something, similar to compilation of
packages (for "ffmpeg" and
"icecat-52.6.0"), as in Gentoo. Well, that is exactly the output of GCC!
Possibly, this take time..


Re: Error system reconfigure with guix-latest

2018-03-06 Thread Ludovic Courtès
Hello Jone,

This config gives me an error with a backtrace:

--8<---cut here---start->8---
In gnu/services/base.scm:
   301:21  1 (file-system->fstab-entry #< device: 
"634a6369-c5a8-4f4c-b3e8-35fb92cf850e" title: uui…>)
In gnu/system/uuid.scm:
276:2  0 (uuid->string . _)

gnu/system/uuid.scm:276:2: In procedure uuid->string:
Throw to key `match-error' with args `("match" "no matching pattern" 
("634a6369-c5a8-4f4c-b3e8-35fb92cf850e"))'.
--8<---cut here---end--->8---

This is fixed by changing:

  "634a6369-c5a8-4f4c-b3e8-35fb92cf850e

to:

  (uuid "634a6369-c5a8-4f4c-b3e8-35fb92cf850e")

Next I get:

--8<---cut here---start->8---
ERROR: In procedure scm-error:
In procedure map: Wrong type argument: (#< label: "GNU with 
Linux-Libre 4.15.7 (beta)" device: "two" device-mount-point: "/" linux: 
#< base: # suffix: ("/" "bzImage")> linux-arguments: ("--root=two" #) initrd: #< base: # 
/gnu/store/nc66z7m1b55ymlcxv9anqpcvxz71dz50-raw-initrd 50ed230> suffix: 
("/initrd")>> . #< label: "Old" device: #f device-mount-point: #f 
linux: "/boot/vmlinuz-4.14.9-calculate" linux-arguments: ("root=/dev/sda3") 
initrd: "/boot/initramfs-4.14.9-calculate.img">)
--8<---cut here---end--->8---

This is because ‘menu-entries’ (plural) expects a list of ‘menu-entry’,
not just one ‘menu-entry’.

Once I’ve fixed that, I can build the config with ‘guix system vm’ or
similar.

I’m attaching the corrected version below (I also removed useless
‘use-modules’ lines at the top.)  Let me know if it works for you.

HTH,
Ludo’.

;; Prepare environment
(use-modules (gnu))
(use-service-modules networking desktop)
(use-package-modules bootloaders ssh)

;; Select packages
(define %pkg-group-base
  '("xfce" "slim" "emacs" "icecat"))
(define %pkg-group-dev
  '("gcc" "glibc" "gcc-toolchain" "git" "automake" "autoconf" "cmake" "make"
"perl" "guile"
"strace"
"linux-libre-headers" "mesa-headers"))

;;;  other pkg groups definitions, omitted 

(operating-system
  (host-name "guix")
  (timezone "Europe/Moscow")
  (locale "en_US.utf8")
  (bootloader (bootloader-configuration
   (bootloader grub-bootloader)
   (target "/dev/sdd")
   (menu-entries
(list (menu-entry
   (label "Old")
   (linux "/boot/vmlinuz-4.14.9-calculate")
   (linux-arguments '("root=/dev/sda3"))
   (initrd
"/boot/initramfs-4.14.9-calculate.img"))

  (initrd-modules (cons* "sata_nv" ;; Nvidia nForce
 "pata_acpi" %base-initrd-modules))

  (file-systems (cons*
 (file-system
   (device "two")
   (mount-point "/")
   (type "ext4")
   (options "noatime,discard 0 1")
   (title 'label))
 (file-system
   (device "one")
   (mount-point "/home")
   (type "ext4")
   (options "noatime,discard 0 0")
   (title 'label))
 (file-system
   (device (uuid "634a6369-c5a8-4f4c-b3e8-35fb92cf850e"))
   (mount-point "/mnt/WD-HDD")
   (type "ext4")
   (options "noatime")
   (title 'uuid))
 %base-file-systems))
  (swap-devices '("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))

  (users (cons (user-account
(name "jone")
(comment "Jone")
(group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/jone"))
   %base-user-accounts))

  (packages (append (map specification->package
 (append %pkg-group-base
 %pkg-group-dev))
%base-packages))
  (services (cons*
 ;; (dhcp-client-service)
 (xfce-desktop-service)
 %desktop-services)))


Re: Error system reconfigure with guix-latest

2018-03-05 Thread Jone
> Can you post the whole config file so we can investigate?

My current config:

;; Prepare environment
(use-modules
 (gnu)
 (gnu packages base)
 (gnu packages admin)
 (gnu packages linux)
 (gnu packages emacs)
 (gnu packages xfce)
 (gnu packages gnuzilla)
 (gnu packages tmux)
 (gnu packages curl)
 (gnu packages video)
 (gnu packages version-control)
 (gnu services networking)
 (gnu system nss)
)
(use-service-modules networking desktop)
(use-package-modules bootloaders ssh)

;; Select packages
(define %pkg-group-base
  '("xfce" "slim" "emacs" "icecat"))
(define %pkg-group-dev
  '("gcc" "glibc" "gcc-toolchain" "git" "automake" "autoconf" "cmake" "make"
"perl" "guile"
"strace"
"linux-libre-headers" "mesa-headers"))

;;;  other pkg groups definitions, omitted 

(operating-system
 (host-name "guix")
 (timezone "Europe/Moscow")
 (locale "en_US.utf8")
 (bootloader (bootloader-configuration
  (bootloader grub-bootloader)
  (target "/dev/sdd")
  (menu-entries (menu-entry
   (label "Old")
   (linux "/boot/vmlinuz-4.14.9-calculate")
   (linux-arguments '("root=/dev/sda3"))
   (initrd
"/boot/initramfs-4.14.9-calculate.img")))
  ))

 (initrd-modules (cons* "sata_nv";; Nvidia nForce
"pata_acpi" %base-initrd-modules))

 (file-systems (cons*
(file-system
 (device "two")
 (mount-point "/")
 (type "ext4")
 (options "noatime,discard 0 1")
 (title 'label))
(file-system
 (device "one")
 (mount-point "/home")
 (type "ext4")
 (options "noatime,discard 0 0")
 (title 'label))
(file-system
 (device "634a6369-c5a8-4f4c-b3e8-35fb92cf850e")
 (mount-point "/mnt/WD-HDD")
 (type "ext4")
 (options "noatime")
 (title 'uuid))
%base-file-systems))
(swap-devices '("/dev/disk/by-uuid/0602935f-4ed2-4805-9ec9-e0c06238abf5"))

(users (cons (user-account
  (name "jone")
  (comment "Jone")
  (group "users")
  (supplementary-groups '("wheel" "netdev" "audio" "video"))
  (home-directory "/home/jone"))
 %base-user-accounts))

(packages (append (map specification->package
   (append %pkg-group-base
   %pkg-group-dev))
  %base-packages))
(services (cons*
   ;; (dhcp-client-service)
   (xfce-desktop-service)
   %desktop-services)))


Re: Error system reconfigure with guix-latest

2018-03-05 Thread Ludovic Courtès
Jone  skribis:

>> Does ‘guix system reconfigure’ succeed once you specify the
>> ‘initrd-modules’ field as others suggested?
>
> This problem is resolved, thanks. But I still can't reconfigure system
> (‘--verbosity=10’ needed to see some output, otherwise absolutely nothing
> in console). Experimentally, I found out that the problem with the
> following code blocks:
>
> 1. in file-systems:
>
> ;; (file-system
> ;;  (device "c36b9de3-2b00-4263-8844-9f2d72628d78")
> ;;  (mount-point "/mnt/oldhome")
> ;;  (type "ext4")
> ;;  (options "noatime,discard 0 0")
> ;;  (title 'uuid))
>
> 2. and in bootloader configuration:
>
>  (bootloader (bootloader-configuration
>   (bootloader grub-bootloader)
>   (target "/dev/sdd")
>   ;; (menu-entries (menu-entry
>   ;;  (label "OldLinux")
>   ;;  (linux "/boot/vmlinuz-4.14.9-calculate")
>   ;;  (linux-arguments '("root=/dev/sda3"))
>   ;;  (initrd
> "/boot/initramfs-4.14.9-calculate.img")))
>   ))
>
> If to comment out them (as above), then process starts, otherwise the
> output is visible only with ‘--verbosity=10’ and nothing else happens,
> there are no errors. But I need a possibility of the login in old system
> and old partitions are necessary :)

At first sight the code blocks above shouldn’t be a problem.

Can you post the whole config file so we can investigate?

Thanks,
Ludo’.



Re: Error system reconfigure with guix-latest

2018-03-05 Thread Ludovic Courtès
Hi Jone,

Jone  skribis:

> Thanks. I rewrite config, following your advice and run 'guix system
> --verbosity=10 reconfigure new.scm':

‘--verbosity=10’ is not very helpful as it throws loads of very
low-level messages.  (‘--verbosity’ in general is rarely what you want.)

Does ‘guix system reconfigure’ succeed once you specify the
‘initrd-modules’ field as others suggested?

Thanks,
Ludo’.



Re: Error system reconfigure with guix-latest

2018-03-04 Thread Jone
Thanks. I rewrite config, following your advice and run 'guix system
--verbosity=10 reconfigure new.scm':

acquiring global GC lock `/var/guix/gc.lock'
acquiring read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
acquiring write lock on `/var/guix/temproots/434'
downgrading to read lock on `/var/guix/temproots/434'
...

and the same thing many more times.
This is a bug?


Re: Error system reconfigure with guix-latest

2018-03-04 Thread Alex Kost
Jone (2018-03-04 15:46 +0300) wrote:

> Hello!
> I'm newbie. After update system (guix pull) I see this error:
>
> root@guix ~# guix system -n reconfigure /etc/CURRENT.scm
> /etc/CURRENT.scm:37:24: error: you need these modules in the initrd
> for /dev/sdb2: sata_nv pata_acpi

As 宋文武 pointed, you can use 'initrd-modules' now.  To make it clear,
you need to replace this:

>   (initrd (lambda (file-systems . rest)
>   (apply base-initrd file-systems
>         #:extra-modules '("sata_nv" "pata_acpi")
>         rest)))

with this:

  (initrd-modules (cons* "sata_nv" "pata_acpi" %base-initrd-modules))

-- 
Alex



Re: Error system reconfigure with guix-latest

2018-03-04 Thread 宋文武
Jone  writes:

> Hello!
> I'm newbie. After update system (guix pull) I see this error:
>
> root@guix ~# guix system -n reconfigure /etc/CURRENT.scm
> /etc/CURRENT.scm:37:24: error: you need these modules in the initrd for
> /dev/sdb2: sata_nv pata_acpi

Hello, this is due to recently added functinon to detect missing modules
in the initrd: .

To fix it, you can use 'initrd-modules' instead of the 'initrd' field in
the 'operating-system' record.

>
> BUT:
> 1. Prior to this (before upgrade) everything was OK
> 2. sata_nv and pata_acpi already selected in CURRENT.scm:
>
> (operating-system
> (host-name "guix")
> (timezone "Europe/Moscow")
> (locale "en_US.utf8")
> (bootloader (bootloader-configuration
> (bootloader grub-bootloader)
> (target "/dev/sdd")))
> (initrd (lambda (file-systems . rest)
> (apply base-initrd file-systems
> #:extra-modules '("sata_nv" "pata_acpi")
> rest)))

This '#:extra-modules' usage is deprecated by the newly added
'initrd-modules' field in 'operating-system'.  For example:


> (file-systems (cons*
> (file-system
> (device "two")
> (mount-point "/")
> (type "ext4")
> (title 'label))
> (file-system
> (device "one")
> (mount-point "/home")
> (type "ext4")
> (title 'label))
> %base-file-systems))
>
> I didn't find any answers in GuixSD documentation..

Well, the guix info manual did got updated, but currently 'guix pull'
won't bring it, for reference: .



Error system reconfigure with guix-latest

2018-03-04 Thread Jone
Hello!
I'm newbie. After update system (guix pull) I see this error:

root@guix ~# guix system -n reconfigure /etc/CURRENT.scm
/etc/CURRENT.scm:37:24: error: you need these modules in the initrd for
/dev/sdb2: sata_nv pata_acpi

BUT:
1. Prior to this (before upgrade) everything was OK
2. sata_nv and pata_acpi already selected in CURRENT.scm:

(operating-system
  (host-name "guix")
  (timezone "Europe/Moscow")
  (locale "en_US.utf8")
  (bootloader (bootloader-configuration
   (bootloader grub-bootloader)
   (target "/dev/sdd")))
  (initrd (lambda (file-systems . rest)
  (apply base-initrd file-systems
#:extra-modules '("sata_nv" "pata_acpi")
rest)))
  (file-systems (cons*
  (file-system
(device "two")
 (mount-point "/")
 (type "ext4")
 (title 'label))
(file-system
 (device "one")
 (mount-point "/home")
 (type "ext4")
 (title 'label))
 %base-file-systems))

I didn't find any answers in GuixSD documentation..