unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* "guix system init" from regular system fails
@ 2022-10-28 21:29 li
  2022-10-28 21:42 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 2+ messages in thread
From: li @ 2022-10-28 21:29 UTC (permalink / raw)
  To: help-guix

Hello,

  I am trying to prepare a new system on new drive from my current Guix
installation, i.e., the first way mentioned in (info "(guix)System
Images").  The documentation at (info "(guix)Invoking guix system)") is
sparse, so I followed those in (info "(guix)Manual Installation"), which
I have successfully done before a couple of times.

  I have made sure the partitions are mounted (/ and /boot/efi @ /mnt
and /mnt/boot/efi) and that that they are correctly configured in
/mnt/etc/config.scm.

  The only difference is that I did not run "herd start cow-store /mnt".
That service is only available when using the installer.  I also believe
that it is not necessary because the documentation says that

> This makes ‘/gnu/store’ copy-on-write, such that packages added to it
> during the installation phase are written to the target disk on ‘/mnt’
> rather than kept in memory.  This is necessary because the first phase
> of the ‘guix system init’ command (see below) entails downloads or
> builds to ‘/gnu/store’ which, initially, is an in-memory file system.

  In this case /gnu/store is not an in-memory file system, so I assume
this is not necessary.  But maybe something equivalent is necessary?

  "sudo guix system init /mnt/etc/config.scm /mnt" succeeds quickly
with output:

<...snip...>
/gnu/store/dhk4hrjpqfcph2alliwg18iiqwc3j86x-system
/gnu/store/q6b71455an8dl1hg8y859rkja22fxk4j-grub.cfg

initializing operating system under '/mnt/'...
copying to '/mnt'...
populating '/mnt'...
The following derivation will be built:
  /gnu/store/sjg10gcq9m88ad7q3znqxfc7qyq4aq8j-install-bootloader.scm.drv

building /gnu/store/sjg10gcq9m88ad7q3znqxfc7qyq4aq8j-install-bootloader.scm.drv...
guix system: bootloader successfully installed on /boot/efi


  After this /mnt/gnu/store is populated and the bootloader also appears
to be installed.  However, this is not a usable system. /mnt/{bin,etc,
home,run} are all empty (except for /mnt/etc/config.scm).  Where did I
go wrong?

  Thanks for your help!
  L


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

* Re: "guix system init" from regular system fails
  2022-10-28 21:29 "guix system init" from regular system fails li
@ 2022-10-28 21:42 ` Tobias Geerinckx-Rice
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Geerinckx-Rice @ 2022-10-28 21:42 UTC (permalink / raw)
  To: li; +Cc: help-guix

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

Hi Li!

li@dotdot.li 写道:
>   The only difference is that I did not run "herd start 
>   cow-store /mnt".
> That service is only available when using the installer.  I also 
> believe
> that it is not necessary because the documentation says that

Correct.  It's only for (and on) the ‘live’ installer.

>   After this /mnt/gnu/store is populated and the bootloader also 
>   appears
> to be installed.  However, this is not a usable system.

OK…  how exactly did you try to use it?

> /mnt/{bin,etc,
> home,run} are all empty (except for /mnt/etc/config.scm).  Where 
> did I
> go wrong?

What makes you think you did?  I've never seen these directories 
be populated by guix system init.

Did you try to boot it?  If so, please share the errors you got.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

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

end of thread, other threads:[~2022-10-28 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 21:29 "guix system init" from regular system fails li
2022-10-28 21:42 ` Tobias Geerinckx-Rice

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