GNU bug report logs - #45295
“sudo guix system reconfigure” triggers re-clone/update of Git checkout

Previous Next

Package: guix;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Thu, 17 Dec 2020 14:02:01 UTC

Severity: important

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: Jorge Acereda <jacereda <at> gmail.com>, 45295 <at> debbugs.gnu.org
Subject: bug#45295: Alternative
Date: Sun, 09 Jan 2022 21:17:49 +0100
[Message part 1 (text/plain, inline)]
Jorge Acereda schreef op zo 09-01-2022 om 20:55 [+0100]:
> Hi,
> 
> New user here, so maybe I'm talking BS. 
> 
> I'm wondering if getting rid of sudo for reconfiguration is an option.
> 
> What if instead of running all the process as root, it invoked sudo (or
> doas) in the final stage, so it can perform the bits that require
> permissions?

A problem here is that this assumes sudo, so "guix system reconfigure"
needs to guess whether to use "su", "sudo", "sudo -E", "doas", ...

Looking at guix/scripts/system.scm, it appears that
"guix system reconfigure" interacts with shepherd directly,
so "guix system reconfigure" needs to be run as root to work;
at least currently it cannot delegate this to a separate process
to be run under "sudo" or the like.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 3 years and 163 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.