all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Updating guix for root
@ 2018-08-28 12:47 Konrad Hinsen
  2018-08-28 16:45 ` Clément Lassieur
  2018-08-28 19:25 ` Ricardo Wurmus
  0 siblings, 2 replies; 5+ messages in thread
From: Konrad Hinsen @ 2018-08-28 12:47 UTC (permalink / raw)
  To: help-guix

Hi Guixers,

I wonder what the correct way is to update Guix for the root user.
I did "guix pull" and got the new Guix under /root/.config/guix/current.
This also contains the daemon under
/root/.config/guix/current/bin/guix-daemon. So far, fine.

However, the systemd service still launches the daemon from 
/var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon. So if I
uninstall the package "guix" for the root account (see
https://www.mail-archive.com/bug-guix@gnu.org/msg09793.html), I will
probably remove the guix-daemon that is used on system startup.

Should I

 1) update /etc/systemd/system/guix-daemon.service
    to point to the current daemon? If so, is
    /root/.config/guix/current/bin/guix-daemon
    the right (stable) path to use?

 2) Get an updated guix-daemon.service from somewhere?
    If so, from where?

 3) Do nothing, and keep using the old guix-daemon?

 4) Do yet something else?

Konrad.

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

* Re: Updating guix for root
  2018-08-28 12:47 Updating guix for root Konrad Hinsen
@ 2018-08-28 16:45 ` Clément Lassieur
  2018-08-30 15:02   ` Konrad Hinsen
  2018-08-28 19:25 ` Ricardo Wurmus
  1 sibling, 1 reply; 5+ messages in thread
From: Clément Lassieur @ 2018-08-28 16:45 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: help-guix

Hi Konrad,

Konrad Hinsen <konrad.hinsen@fastmail.net> writes:

> Hi Guixers,
>
> I wonder what the correct way is to update Guix for the root user.
> I did "guix pull" and got the new Guix under /root/.config/guix/current.
> This also contains the daemon under
> /root/.config/guix/current/bin/guix-daemon. So far, fine.
>
> However, the systemd service still launches the daemon from 
> /var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon. So if I
> uninstall the package "guix" for the root account (see
> https://www.mail-archive.com/bug-guix@gnu.org/msg09793.html), I will
> probably remove the guix-daemon that is used on system startup.
>
> Should I
>
>  1) update /etc/systemd/system/guix-daemon.service
>     to point to the current daemon? If so, is
>     /root/.config/guix/current/bin/guix-daemon
>     the right (stable) path to use?
>
>  2) Get an updated guix-daemon.service from somewhere?
>     If so, from where?
>
>  3) Do nothing, and keep using the old guix-daemon?
>
>  4) Do yet something else?
>
> Konrad.

If you are the only user on your computer, you probably don't need Guix
to be installed at all for the 'root' user, and can just make sure
/etc/systemd/system/guix-daemon.service points to
/home/user/.config/guix/current/bin/guix-daemon.  It will be updated
when you will 'guix pull' as a normal user, to the last guix package,
and hopefully, later, to the guix that was pulled.

Clément

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

* Re: Updating guix for root
  2018-08-28 12:47 Updating guix for root Konrad Hinsen
  2018-08-28 16:45 ` Clément Lassieur
@ 2018-08-28 19:25 ` Ricardo Wurmus
  2018-09-01 14:32   ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2018-08-28 19:25 UTC (permalink / raw)
  To: Konrad Hinsen; +Cc: help-guix


Hi Konrad,

> However, the systemd service still launches the daemon from 
> /var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon. So if I
> uninstall the package "guix" for the root account (see
> https://www.mail-archive.com/bug-guix@gnu.org/msg09793.html), I will
> probably remove the guix-daemon that is used on system startup.

You are right that this is a problem.  Our instructions for the binary
installation method say that this binary method works because it comes
with a pre-populated profile for the root user.

I believe we should revise these instructions, so that they take into
account the new behaviour of “guix pull”.

What do others think?

-- 
Ricardo

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

* Re: Updating guix for root
  2018-08-28 16:45 ` Clément Lassieur
@ 2018-08-30 15:02   ` Konrad Hinsen
  0 siblings, 0 replies; 5+ messages in thread
From: Konrad Hinsen @ 2018-08-30 15:02 UTC (permalink / raw)
  To: Clément Lassieur, Ricardo Wurmus; +Cc: help-guix

Hi Clément and Ricardo,

Thanks for your replies!

I conclude from them that there is no clear recommendation yet for
dealing with this situation, so for the meantime I applied

>>  1) update /etc/systemd/system/guix-daemon.service
>>     to point to the current daemon? If so, is
>>     /root/.config/guix/current/bin/guix-daemon
>>     the right (stable) path to use?

I prefer to point to /root rather then to my $HOME which is less
reliable for reasons completely unrelated to Guix (it's on a zfs volume
shared with macOS).

So far (i.e. for about a day) this seems to work fine!

Thanks again,
  Konrad.]

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

* Re: Updating guix for root
  2018-08-28 19:25 ` Ricardo Wurmus
@ 2018-09-01 14:32   ` Ludovic Courtès
  0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2018-09-01 14:32 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Hello,

Ricardo Wurmus <rekado@elephly.net> skribis:

>> However, the systemd service still launches the daemon from 
>> /var/guix/profiles/per-user/root/guix-profile/bin/guix-daemon. So if I
>> uninstall the package "guix" for the root account (see
>> https://www.mail-archive.com/bug-guix@gnu.org/msg09793.html), I will
>> probably remove the guix-daemon that is used on system startup.
>
> You are right that this is a problem.  Our instructions for the binary
> installation method say that this binary method works because it comes
> with a pre-populated profile for the root user.
>
> I believe we should revise these instructions, so that they take into
> account the new behaviour of “guix pull”.

Perhaps we could somehow provide a profile that would have to be linked
to ~/.config/guix/current?

The ~root/.guix-profile that comes with the binary tarball has the
advantage of providing ‘glibc-utf8-locales’ and the corresponding
‘GUIX_LOCPATH’.  It would be nice to keep it somehow.

That requires some thought…

Thanks,
Ludo’.

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

end of thread, other threads:[~2018-09-01 14:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-28 12:47 Updating guix for root Konrad Hinsen
2018-08-28 16:45 ` Clément Lassieur
2018-08-30 15:02   ` Konrad Hinsen
2018-08-28 19:25 ` Ricardo Wurmus
2018-09-01 14:32   ` Ludovic Courtès

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.