Clarify note about sudo in 3.7 After System Installation

  • Open
  • quality assurance status badge
Details
One participant
  • Akira Kyle
Owner
unassigned
Submitted by
Akira Kyle
Severity
normal
A
A
Akira Kyle wrote on 28 Dec 2021 22:56
(address . bug-guix@gnu.org)
CAPWcbYGLa3ahNxR9rwAOtboZTkrNFgr4bMEAYiVukEiVan2k3g@mail.gmail.com
Hi,

I'm trying to get going with guixsd for the first time and I just
spent awhile trying to figure out what was going wrong trying to run
'guix pull' and 'guix system reconfigure /etc/config.scm'.

The issue was that I was running both in shell obtained via 'sudo su'
from my user shell. I had read the note about this in section "3.7
After System Installation" and thought since, following the note, I
was running both in a root shell, this would be fine. Coming from nix,
this is fine, however I see now that the environment and path are
incorrect in a 'sudo su' shell as the guix that was being used was the
system guix from /run/current-system/profile and not
/root/.config/guix/current which led to the effective system downgrade
that running guix system reconfigure kept warning about.

I would suggest updating the documentation to explicitly say 'sudo su'
should not be used since I expect there are many others like me who
are ignorant to the differences between 'sudo su' and 'sudo -i'

Thanks,
Akira
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 52862@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 52862
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch