unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* guixsd can not install on my machine again
@ 2017-09-18 13:23 tumashu
  2017-09-18 14:57 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: tumashu @ 2017-09-18 13:23 UTC (permalink / raw)
  To: guix

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

The error:
------------------------------------------------------
guix system: warning: The 'device' field of bootloader configurations is deprecated.
guix system: warning: Use 'target' instead.
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...  33.3%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...  66.7%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...  33.3%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...  66.7%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
substitute:
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'...   0.0%
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
Backtrace:
          14 (primitive-load "/gnu/store/xcnrc8lvq7yks3c02cpknphj3n0?")
In guix/ui.scm:
  1375:12 13 (run-guix-command _ . _)
In ice-9/boot-9.scm:
    837:9 12 (catch _ _ #<procedure b56555a8 at guix/ui.scm:451:2 (?> ?)
    837:9 11 (catch _ _ #<procedure b56555b8 at guix/ui.scm:539:6 (?> ?)
In guix/scripts/system.scm:
   1034:8 10 (_)
    909:6  9 (process-action _ _ _)
In guix/store.scm:
  1443:24  8 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/system.scm:
   660:31  7 (_ _)
In srfi/srfi-1.scm:
   705:23  6 (filter-map #<procedure system->boot-parameters (sys?> . #)
In ice-9/boot-9.scm:
    837:9  5 (catch system-error #<procedure b9c3738 at guix/script?> ?)
In guix/scripts/system.scm:
   384:30  4 (_)
In gnu/system.scm:
   307:17  3 (read-boot-parameters-file "/var/guix/profiles/system-1?")
In ice-9/ports.scm:
   444:17  2 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
In gnu/system.scm:
   282:10  1 (read-boot-parameters _)
    238:4  0 (device-sexp->device _)

gnu/system.scm:238:4: In procedure device-sexp->device:
gnu/system.scm:238:4: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.


--------------------------------------------------------
the below is my config:


----------------
(use-modules (gnu) (gnu system nss))
(use-modules (gnu system locale))
(use-service-modules desktop)
(use-package-modules certs gnome)

(operating-system
 (host-name "tumashu")
 (timezone "Asia/Shanghai")
 (locale "zh_CN.UTF-8")
 (locale-definitions
  (cons* (locale-definition
          (name "zh_CN.GB2312")
          (source "zh_CN"))
         (locale-definition
          (name "zh_CN.GBK")
          (source "zh_CN"))
         (locale-definition
          (name "zh_CN.GB18030")
          (source "zh_CN"))
         (locale-definition
          (name "zh_TW.BIG5")
          (source "zh_TW"))
         (locale-definition
          (name "zh_TW.UTF-8")
          (source "zh_TW"))
         %default-locale-definitions))

 ;; Assuming /dev/sdX is the target hard disk
 (bootloader (grub-configuration (device "/dev/sda")))

 (file-systems
  (cons*
   (file-system
    (device "/dev/sda7")
    (title 'device)
    (mount-point "/")
    (type "ext4"))
   (file-system
    (device "/dev/sda5")
    (title 'device)
    (mount-point "/home")
    (type "ext4"))
   (file-system
    (device "/dev/sda6")
    (title 'device)
    (mount-point "/mnt/backup1")
    (type "ext4"))
   %base-file-systems))

 (swap-devices '("/dev/sda8"))

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

 ;; This is where we specify system-wide packages.
  (packages
   (append (map specification->package
                '("wpa-supplicant" 
                  "gvfs" "nss-certs"
                  "font-wqy-microhei"
                  ))
          %base-packages))

 ;; Add GNOME and/or Xfce---we can choose at the log-in
 ;; screen with F1.  Use the "desktop" services, which
 ;; include the X11 log-in service, networking with Wicd,
 ;; and more.
 (services (cons* (xfce-desktop-service)
                  %desktop-services))
 
 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss))




---------------





[-- Attachment #2: Type: text/html, Size: 8673 bytes --]

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

* Re: guixsd can not install on my machine again
  2017-09-18 13:23 guixsd can not install on my machine again tumashu
@ 2017-09-18 14:57 ` Ludovic Courtès
  2017-09-18 23:12   ` Feng Shu
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2017-09-18 14:57 UTC (permalink / raw)
  To: tumashu; +Cc: guix

Hi tumashu,

tumashu <tumashu@163.com> skribis:

> In gnu/system.scm:
>    307:17  3 (read-boot-parameters-file "/var/guix/profiles/system-1?")
> In ice-9/ports.scm:
>    444:17  2 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
> In gnu/system.scm:
>    282:10  1 (read-boot-parameters _)
>     238:4  0 (device-sexp->device _)
>
> gnu/system.scm:238:4: In procedure device-sexp->device:
> gnu/system.scm:238:4: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.

Thanks for your report.  A patch for this is pending evaluation:

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28445#23

Could you check if the proposed patch solves the problem for you?

TIA!

Ludo’.

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

* Re: guixsd can not install on my machine again
  2017-09-18 14:57 ` Ludovic Courtès
@ 2017-09-18 23:12   ` Feng Shu
  0 siblings, 0 replies; 3+ messages in thread
From: Feng Shu @ 2017-09-18 23:12 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Feng Shu

ludo@gnu.org (Ludovic Courtès) writes:

> Hi tumashu,
>
> tumashu <tumashu@163.com> skribis:
>
>> In gnu/system.scm:
>>    307:17  3 (read-boot-parameters-file "/var/guix/profiles/system-1?")
>> In ice-9/ports.scm:
>>    444:17  2 (call-with-input-file _ _ #:binary _ #:encoding _ # _)
>> In gnu/system.scm:
>>    282:10  1 (read-boot-parameters _)
>>     238:4  0 (device-sexp->device _)
>>
>> gnu/system.scm:238:4: In procedure device-sexp->device:
>> gnu/system.scm:238:4: Throw to key `match-error' with args `("match" "no matching pattern" #f)'.
>
> Thanks for your report.  A patch for this is pending evaluation:
>
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28445#23
>
> Could you check if the proposed patch solves the problem for you?
>

It can let me install the guixsd to my machine,

the problem is that grub will show error which can not find device "/dev/sda7"
and I need press a key to init guixsd

> TIA!
>
> Ludo’.

-- 

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

end of thread, other threads:[~2017-09-18 23:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-18 13:23 guixsd can not install on my machine again tumashu
2017-09-18 14:57 ` Ludovic Courtès
2017-09-18 23:12   ` Feng Shu

Code repositories for project(s) associated with this public inbox

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

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).