Hello Guix,

I'm testing out setting up a dual boot between GuixSD and Arch. I've no
idea how much each one will take on disk. I decided to try out btrfs and
subvolumes for the layout.

But I'm having some issues booting the thing.

My disk layout right now is:
  sda1      1MB BIOS boot
  sda2      4G  swap
  sda3 228.9GB  btrfs

then subvolumes:

section from my config.scm, which is based on my old config (old one is

(file-systems (cons* (file-system
   (device "root")
   (title 'label)
   (mount-point "/boot")
   (dependecies mapped-devices))
;; repeat for guixsd-root and home but with correct value for subvol

guix system init worked fine but when booting it fails to locate the
bzImage. Which I assume is because it doesn't know that the root is in a

Long story short. How do I add rootflags to GuixSD's grub menu entry? Need
to add "rootflags=subvol=__current/guixsd-root" to the linux-arguments.
Might be an issue of having boot as a subvolume as well.


;; 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))
(use-service-modules desktop networking ssh base xorg)
(use-package-modules wm certs suckless shells)

(define plattfot 
   (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))

 (host-name "loke")
 (timezone "Canada/Pacific")
 (locale "en_US.utf8")
   (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 (device "/dev/sda")))

 ;; Specify a mapped device for the encrypted root partition.
 ;; The UUID is that returned by 'cryptsetup luksUUID'.
  (list (mapped-device
	 (source (uuid "de52fa25-e7d0-4d63-8a35-91e561964043"))
	 (target "the-root-device")
	 (type luks-device-mapping))))

 (file-systems (cons* (file-system
		       (device "root")
		       (title 'label)
		       (mount-point "/")
		       (type "ext4")
		       (dependencies mapped-devices))
		       (device "fafner:/srv/nfs4/Valhalla")
		       (title 'device)
		       (mount-point "/media/Valhalla")
		       (type "nfs4")
		       ;; (options "defaults")
		       (mount? #f)
		       (check? #f))

 (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 dmenu ;window managers
		  nss-certs            ;for HTTPS access

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

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

Reply via email to