unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Failed to start service 'device-mapping
@ 2016-06-24 19:49 Kete Foy
  2016-06-26 21:00 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Kete Foy @ 2016-06-24 19:49 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 787 bytes --]

I checked my config.scm (attached), but I don't see any missing parens
or any discrepancy from Ludo's example
<https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00964.html>. I
also based the rest on rain1's github wiki:
https://gitlab.com/rain1/guix-wiki/wikis/encrypted-home-config.scm.

I booted the computer, and Grub loaded the kernel. Then, the device
mapper failed to start, and apparently, every service afterward also
failed to start: user-processes, guix-daemon, term-tty6, dbus-system,
xorg-server, etc. I'm trying to run with an encrypted partition mounted
at /home.

Do I need to correct my config.scm and run the herd and guix system init
commands again?
-- 
https://emailselfdefense.fsf.org
gpg --recv-key 0xD7E954319C95097FC314C2A2DD8C15BD01685E3A

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: config.scm --]
[-- Type: text/x-scheme; name="config.scm", Size: 2048 bytes --]

;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.

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

(operating-system
  (host-name "kantelope")
  (timezone "America/New_York")
  (locale "en_US.UTF-8")

  ;; Assuming /dev/sdX is the target hard disk, and "my-root"
  ;; is the label of the target root file system.
  (bootloader (grub-configuration (device "/dev/sda")))
  (mapped-devices (list (mapped-device
                         (source (uuid "ea0f857c-038b-4dda-b81f-39ad76210cfa"))
                         (target "crypthome")
                         (type luks-device-mapping))))

  (file-systems (cons* (file-system
                         (device "rootfs")
                         (title 'label)
                         (mount-point "/")
                         (type "ext4"))
                       (file-system
                         (device "/dev/mapper/crypthome")
                         (mount-point "/home")
                         (type "ext4"))
                      %base-file-systems))

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

  ;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   %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* (gnome-desktop-service)
                   (xfce-desktop-service)
                   %desktop-services))

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

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

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

* Re: Failed to start service 'device-mapping
  2016-06-24 19:49 Failed to start service 'device-mapping Kete Foy
@ 2016-06-26 21:00 ` Ludovic Courtès
  2016-06-26 23:17   ` Kete Foy
  2016-06-27  7:14   ` Kete Foy
  0 siblings, 2 replies; 4+ messages in thread
From: Ludovic Courtès @ 2016-06-26 21:00 UTC (permalink / raw)
  To: Kete Foy; +Cc: help-guix

Kete Foy <kete@ninthfloor.org> skribis:

> I checked my config.scm (attached), but I don't see any missing parens
> or any discrepancy from Ludo's example
> <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00964.html>. I
> also based the rest on rain1's github wiki:
> https://gitlab.com/rain1/guix-wiki/wikis/encrypted-home-config.scm.
>
> I booted the computer, and Grub loaded the kernel. Then, the device
> mapper failed to start, and apparently, every service afterward also
> failed to start: user-processes, guix-daemon, term-tty6, dbus-system,
> xorg-server, etc. I'm trying to run with an encrypted partition mounted
> at /home.
>
> Do I need to correct my config.scm and run the herd and guix system init
> commands again?

>   (mapped-devices (list (mapped-device
>                          (source (uuid "ea0f857c-038b-4dda-b81f-39ad76210cfa"))
>                          (target "crypthome")
>                          (type luks-device-mapping))))

Are you sure the UUID is correct?  It must be a LUKS UUID, as returned
by “cryptsetup luksUUID /dev/sdXXYY”, not an ext2 UUID.

Also, the ability to use LUKS UUIDs like this was not available in
0.10.0.  So if you’re installing from the 0.10.0 USB image, you must
first ‘guix pull’.

Apart from that the config looks OK.

HTH!

Ludo’.

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

* Re: Failed to start service 'device-mapping
  2016-06-26 21:00 ` Ludovic Courtès
@ 2016-06-26 23:17   ` Kete Foy
  2016-06-27  7:14   ` Kete Foy
  1 sibling, 0 replies; 4+ messages in thread
From: Kete Foy @ 2016-06-26 23:17 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

Ludovic Courtès:
> Are you sure the UUID is correct?  It must be a LUKS UUID, as returned
> by “cryptsetup luksUUID /dev/sdXXYY”, not an ext2 UUID.

No, that's probably what's wrong, Ludó, and thanks for the suggested
command.
> 
> Also, the ability to use LUKS UUIDs like this was not available in
> 0.10.0.  So if you’re installing from the 0.10.0 USB image, you must
> first ‘guix pull’.
> 
Ok, I better do that, too.

> Apart from that the config looks OK.
> 
Thanks, I might respond with results.

-- 
https://emailselfdefense.fsf.org
gpg --recv-key 'D7E9 5431 9C95 097F C314  C2A2 DD8C 15BD 0168 5E3A'

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

* Re: Failed to start service 'device-mapping
  2016-06-26 21:00 ` Ludovic Courtès
  2016-06-26 23:17   ` Kete Foy
@ 2016-06-27  7:14   ` Kete Foy
  1 sibling, 0 replies; 4+ messages in thread
From: Kete Foy @ 2016-06-27  7:14 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix


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

Ludovic Courtès:
> Are you sure the UUID is correct?  It must be a LUKS UUID, as returned
> by “cryptsetup luksUUID /dev/sdXXYY”, not an ext2 UUID.
> 
This actually gave me the same UUID, so I moved on to the next step
since the issue could have just been the lack of LUKS UUID functionality
in 0.10.

> Also, the ability to use LUKS UUIDs like this was not available in
> 0.10.0.  So if you’re installing from the 0.10.0 USB image, you must
> first ‘guix pull’.
> 
Everything went well, and I booted into Xfce. Thanks

-- 
https://emailselfdefense.fsf.org
gpg --recv-key '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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-24 19:49 Failed to start service 'device-mapping Kete Foy
2016-06-26 21:00 ` Ludovic Courtès
2016-06-26 23:17   ` Kete Foy
2016-06-27  7:14   ` Kete Foy

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