guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System installation from a USB stick


From: Ludovic Courtès
Subject: Re: System installation from a USB stick
Date: Mon, 21 Jul 2014 23:59:00 +0200
User-agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)

Adam Pribyl <address@hidden> skribis:

> deco stop udev
> mount -t devtmpfs dev /dev
> deco start udev
>
> then /dev is correctly populated.

This patch apparently does the trick similarly:

diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index ae12c8e..31f1b74 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -497,6 +497,7 @@ passed to @command{guix-daemon}."
                         (setenv "LINUX_MODULE_DIRECTORY"
                                 "/run/booted-system/kernel/lib/modules")
 
+                        (mount "none" "/dev" "devtmpfs")
                         (let ((pid (primitive-fork)))
                           (case pid
                             ((0)
(We can’t use devtmpfs in ‘mount-essential-file-systems’, which is used
before udev starts, though.)

Ludo’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]