all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* sha256 hash mismatch
@ 2018-11-19  5:10 Fredrik Salomonsson
  2018-11-19  6:03 ` Jovany Leandro G.C
  2018-11-19 18:53 ` swedebugia
  0 siblings, 2 replies; 8+ messages in thread
From: Fredrik Salomonsson @ 2018-11-19  5:10 UTC (permalink / raw)
  To: help-guix


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

Hi,

Trying to install guix-0.15 to see if I can get dual booting with btrfs
working on my laptop. But didn't get that far. Encounter an error when
running guix system init. Ran it twice, same error. Any idea what could be
wrong? Took about 4-6h to run it the first time.

Here's the command:
guix system init /mnt/etc/config.scm /mnt/ --substitute-urls="
https://hydra.gnu.org https://berlin.guixsd.org"
And here's the output of the second run, minus a bunch of substitute:
updating...

Starting download of
/gnu/store/j8cahmsfnjpdw49aa1qybrs0sm5z86fm-openal-soft-1.18.2.tar.bz2
From http://kcat.strangesoft.net/openal-releases/openal-soft-1.18.2.tar.bz2.
..
 ....18.2.tar.bz2                             2.1MiB/s 00:00 | 10KiB
transferred
sha256 hash mismatch for output path
`/gnu/store/j8cahmsfnjpdw49aa1qybrs0sm5z86fm-openal-soft-1.18.2.tar.bz2'
  expected: 10kydm8701a2kppiss9sdidn1820cmzhqgx1b2bsa5dsgzic32lz
  actual:   0m22iiwrg5lf4xjhapk9i801kc2mi7bgyxnl38qblhgp3nz2qlj5
cannot build derivation
`/gnu/store/860d96xqghxc01nx8x4v6xyz367lq7jd-openal-1.18.2.drv': 1
dependencies couldn't be built
cannot build derivation
`/gnu/store/9z2n3s1dhlz0xd2pajcjaqygysa50jx0-ffmpeg-4.0.1.drv': 1
dependencies couldn't be built
cannot build derivation
`/gnu/store/zgv9i7irmmph9qck7pf3vsy3y9qd835q-alsa-plugins-1.1.6.drv': 1
dependencies couldn't be built
guix system: error: build failed: build of
`/gnu/store/zgv9i7irmmph9qck7pf3vsy3y9qd835q-alsa-plugins-1.1.6.drv' failed

I attached my config files, 00-keyboard.conf is placed in /etc/config.d

Thanks
-- 
s/Fred[re]+i[ck]+/Fredrik/g

[-- Attachment #1.2: Type: text/html, Size: 2270 bytes --]

[-- Attachment #2: 00-keyboard.conf --]
[-- Type: text/plain, Size: 297 bytes --]

# Map Ctrl to caps, toggle between us and swedish keyboard layout. Scroll lock led is on when using swedish layout.
Section "InputClass"
	Identifier "system-keyboard"
	MatchIsKeyboard "on"
	Option "XkbLayout" "us,se"
	Option "XkbOptions" "ctrl:nocaps,grp:sclk_toggle,grp_led:scroll,:2"
EndSection

[-- Attachment #3: config.scm --]
[-- Type: text/x-scheme, Size: 6086 bytes --]

;; This is an operating system configuration template
;; for a "desktop" setup without full-blown desktop
;; environments.

(use-modules (gnu)
	     (gnu packages)
	     (gnu system nss)
	     (gnu system locale)
	     (gnu services nfs)
	     (ice-9 rdelim)
             (ice-9 format))
(use-service-modules desktop networking ssh base xorg)
(use-package-modules wm certs shells xdisorg)

(define plattfot 
  (user-account
   (name "plattfot")
   (group "users")
   ;; Define a G-Expr to find the path of the zsh binary:
   ;; https://gitlab.com/rain1/guix-wiki/wikis/FAQ#how-do-i-make-my-login-shell-zsh
   (shell #~(string-append #$zsh "/bin/zsh"))
   (supplementary-groups '("wheel" "netdev" "audio" "video"))
   (home-directory "/home/plattfot")))

;;(define keyboard-conf
  ;;(call-with-input-file "/etc/config.d/00-keyboard.conf" read-string))

;; Specify a mapped device for the encrypted root partition.
;; The UUID is that returned by 'cryptsetup luksUUID'.
(define mapped-root
  (mapped-device
   (source (uuid "ab43f8be-1a18-4999-836d-71dac382dfb5"))
   (target "root")
   (type luks-device-mapping)))

(define mapped-swap
  (mapped-device
   (source (uuid "9f04f917-efd3-4036-b3f5-24705fee7ffa"))
   (target "swap")
   (type luks-device-mapping)))

;; Partion layout for /dev/sda3
;; under __current/
;; | subvol      | Mountpoint   | Comment            | Shared   |
;; |-------------+--------------+--------------------+----------|
;; | arch-root   | /            | root for Arch      | no       |
;; | guixsd-root | /            | root for GuixSD    | no       |
;; | grub        | /boot/grub   | grub config        | yes      |
;; | guix        | /var/guix    | guix stuff         | yes      |
;; | gnu         | /gnu         | Store etc          | yes      |
;; | home        | /home        | home partition     | yes      |

(define btrfs-common-options
  '("defaults" "discard" "compress=lzo" "space_cache" "autodefrag"))

(define (btrfs-mount-options subvol)
  "Return the btrfs mount options I use.
Where SUBVOL is the subvolume to mount"
  (string-join (cons (format #f "subvol=~a" subvol) btrfs-common-options) ","))

(define fs-root
  (file-system
   (mount-point "/")
   (type "btrfs")
   (device (file-system-label "root"))
   (options (btrfs-mount-options "__current/guixsd-root"))
   (needed-for-boot? #t)
   (dependencies (list mapped-root))))

(define fs-grub
  (file-system
   (mount-point "/boot/grub")
   (type "btrfs")
   (device (file-system-label "root"))
   (options (btrfs-mount-options "__current/grub"))
   (needed-for-boot? #t)
   (dependencies (list fs-root))))

(define fs-gnu
  (file-system
   (mount-point "/gnu")
   (type "btrfs")
   (device (file-system-label "root"))
   (options (btrfs-mount-options "__current/gnu"))
   (needed-for-boot? #t)
   (dependencies (list fs-root))))

(define fs-guix
  (file-system
   (mount-point "/var/guix")
   (type "btrfs")
   (device (file-system-label "root"))
   (options (btrfs-mount-options "subvol=__current/guix"))
   (needed-for-boot? #t)
   (dependencies (list fs-root))))

(define fs-home
  (file-system
   (mount-point "/home")
   (type "btrfs")
   (device (file-system-label "root"))
   (options (btrfs-mount-options "__current/home"))
   (needed-for-boot? #t)
   (dependencies (list fs-root))))

(define fs-valhalla
  (file-system
   (device "fafner:/srv/nfs4/Valhalla")
   (mount-point "/media/Valhalla")
   (type "nfs4")
   (mount? #f)
   (check? #f)))

(define menu-arch
  (menu-entry
   (label "Arch Linux")
   (linux "/boot/vmlinux")
   (linux-arguments
    '("luks.uuid=ab43f8be-1a18-4999-836d-71dac382dfb5"
      "luks.name=ab43f8be-1a18-4999-836d-71dac382dfb5=root"
      "luks.key=ab43f8be-1a18-4999-836d-71dac382dfb5=/boot/rootkey.bin"
      "luks.options=ab43f8be-1a18-4999-836d-71dac382dfb5=discard,luks"
      "luks.uuid=9f04f917-efd3-4036-b3f5-24705fee7ffa"
      "luks.name=9f04f917-efd3-4036-b3f5-24705fee7ffa=swap"
      "luks.key=9f04f917-efd3-4036-b3f5-24705fee7ffa=/boot/swapkey.bin"
      "luks.options=9f04f917-efd3-4036-b3f5-24705fee7ffa=swap,discard,luks"
      "root=LABEL=root"
      "resume=/dev/mapper/swap"
      "rootflags=compress=lzo,subvol=__current/arch-root"))
   (initrd "/boot/initramfs-linux.img")))

(operating-system
 (host-name "loke")
 (timezone "Canada/Pacific")
 (locale "en_US.utf8")
 (locale-definitions 
  (list 
   (locale-definition (name "en_US.utf8") (source "en_US") (charset "UTF-8"))
   (locale-definition (name "sv_SE.utf8") (source "sv_SE") (charset "UTF-8"))))
 ;; Assuming /dev/sda is the target hard disk, and "root"
 ;; is the label of the target root file system.
 (bootloader 
  (grub-configuration (target "/dev/sda")
		      ;; Need to mount __current/arch-root
		      ;; (menu-entries '(menu-arch))
		      ))
 ;; Kernel arguments
 (kernel-arguments '("rootflags=compress=lzo,subvol=__current/guixsd-root"))
 (mapped-devices (list mapped-root mapped-swap))
 (file-systems 
  (cons*
   fs-home
   fs-grub
   fs-gnu
   fs-guix
   fs-root
   %base-file-systems))
 (swap-devices '("/dev/mapper/swap"))
 (users (cons plattfot %base-user-accounts))

 ;; Add a bunch of window managers; we can choose one at
 ;; the log-in screen with F1.
 (packages (cons* i3-wm i3status rofi ;window managers
		  zsh
		  nss-certs            ;for HTTPS access
		  %base-packages))

 ;; Use the "desktop" services, which include the X11
 ;; log-in service, networking with Wicd, and more.
 (services (cons* (service openssh-service-type
			   (openssh-configuration
			    (port-number 6060)
                            (password-authentication? #f)))
		  (extra-special-file "/bin/env" (file-append coreutils "/bin/env"))
		  %desktop-services
		  ;; (modify-services %desktop-services
		  ;;	   (slim-service-type 
		  ;;    config => (slim-configuration
		  ;;       (inherit config)
		  ;;     (startx (xorg-start-command
		  ;;	#:configuration-file
		  ;;(xorg-configuration-file
		  ;;#:extra-config
		  ;;(list keyboard-conf)))))))
		  ))

 ;; Allow resolution of '.local' host names with mDNS.
 (name-service-switch %mdns-host-lookup-nss))

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

end of thread, other threads:[~2018-11-21 18:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-19  5:10 sha256 hash mismatch Fredrik Salomonsson
2018-11-19  6:03 ` Jovany Leandro G.C
2018-11-19 18:53 ` swedebugia
2018-11-20  3:49   ` Fredrik Salomonsson
2018-11-20 16:21     ` swedebugia
2018-11-21  7:33       ` Fredrik Salomonsson
2018-11-21 16:06         ` swedebugia
2018-11-21 18:23           ` Fredrik Salomonsson

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.