* Is it possible to system reconfigure from a local guix git?
@ 2023-04-17 23:15 Denis 'GNUtoo' Carikli
2023-04-18 0:07 ` Felix Lechner via
2023-04-18 7:03 ` Andreas Enge
0 siblings, 2 replies; 5+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-04-17 23:15 UTC (permalink / raw)
To: help-guix
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
Hi,
I'm still using i686 to be able to know when it's broken and if
time permits, to send patches to fix some of the issues affecting me.
Since patches often take a long time to be reviewed (we probably need
more reviewers), I was wondering if it was possible to reconfigure from
a local Guix git checkout.
Running a system straight from a git repository would also enable me to
improve my workflow and test better the patches.
The issue I have here is that I can easily do that:
> $ guix shell -D guix
> $ ./pre-inst-env guix system build system.scm
But I didn't find a way to make sudo and pre-inst-env work together.
I've tried things like that:
> $ sudo -E ./pre-inst-env guix system reconfigure system.scm
And it reconfigured my system but I then have a broken guix
installation:
> $ guix shell -D guix
> ;;; Failed to autoload symlink-spec-option-parser in (guix scripts
> pack): ;;; Throw to key `record-abi-mismatch-error' with args
> `(abi-check "~a: record ABI mismatch; recompilation needed"
> (#<record-type <svn-reference>>) ())'.
What is the correct way (if any) to do something like that?
PS: There is also normally a way to recover from that since I was
helped on IRC to recover and at some point it worked.
So I'll try various things like 'rm -rf ~/.cache/guile/ccache/ &&
guix pull' until I find how to recover.
Denis.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to system reconfigure from a local guix git?
2023-04-17 23:15 Is it possible to system reconfigure from a local guix git? Denis 'GNUtoo' Carikli
@ 2023-04-18 0:07 ` Felix Lechner via
2023-04-18 7:03 ` Andreas Enge
1 sibling, 0 replies; 5+ messages in thread
From: Felix Lechner via @ 2023-04-18 0:07 UTC (permalink / raw)
To: Denis 'GNUtoo' Carikli; +Cc: help-guix
Hi Denis,
On Mon, Apr 17, 2023 at 4:16 PM Denis 'GNUtoo' Carikli
<GNUtoo@cyberdimension.org> wrote:
>
> But I didn't find a way to make sudo and pre-inst-env work together.
There probably is a way but due to a home folder that is a FUSE
filesystem, I cannot use sudo at all. I use 'guix deploy' [1] even
though there are some security disadvantages. Maybe that works for
you, too.
Kind regards
Felix
[1] https://codeberg.org/lechner/system-config/src/branch/history/host/lechner-desktop/machine.scm
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to system reconfigure from a local guix git?
2023-04-17 23:15 Is it possible to system reconfigure from a local guix git? Denis 'GNUtoo' Carikli
2023-04-18 0:07 ` Felix Lechner via
@ 2023-04-18 7:03 ` Andreas Enge
2023-04-19 15:29 ` Denis 'GNUtoo' Carikli
1 sibling, 1 reply; 5+ messages in thread
From: Andreas Enge @ 2023-04-18 7:03 UTC (permalink / raw)
To: Denis 'GNUtoo' Carikli; +Cc: help-guix
Hello,
my reply does not quite answer your question, but here is how I do it
by circumventing the problem... I have never quite understood sudo and
always used su.
Am Tue, Apr 18, 2023 at 01:15:37AM +0200 schrieb Denis 'GNUtoo' Carikli:
> > $ guix shell -D guix
> > $ ./pre-inst-env guix system build system.scm
So in a first step, if I am limited to sudo, I do "sudo su -" to
become root.
Then either I use a git checkout of guix as root, or I cd to my
regular user's git checkout. Then ./pre-inst-env guix system reconfigure ...
Andreas
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to system reconfigure from a local guix git?
2023-04-18 7:03 ` Andreas Enge
@ 2023-04-19 15:29 ` Denis 'GNUtoo' Carikli
2023-04-20 12:46 ` Maxim Cournoyer
0 siblings, 1 reply; 5+ messages in thread
From: Denis 'GNUtoo' Carikli @ 2023-04-19 15:29 UTC (permalink / raw)
To: Andreas Enge; +Cc: help-guix
[-- Attachment #1: Type: text/plain, Size: 288 bytes --]
On Tue, 18 Apr 2023 09:03:51 +0200
Andreas Enge <andreas@enge.fr> wrote:
> So in a first step, if I am limited to sudo, I do "sudo su -" to
> become root.
Thanks a lot, that seems to work: I don't have the same errors anymore
(I've other errors related to i686 though).
Denis.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Is it possible to system reconfigure from a local guix git?
2023-04-19 15:29 ` Denis 'GNUtoo' Carikli
@ 2023-04-20 12:46 ` Maxim Cournoyer
0 siblings, 0 replies; 5+ messages in thread
From: Maxim Cournoyer @ 2023-04-20 12:46 UTC (permalink / raw)
To: Denis 'GNUtoo' Carikli; +Cc: Andreas Enge, help-guix
Hi Denis,
Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> writes:
> On Tue, 18 Apr 2023 09:03:51 +0200
> Andreas Enge <andreas@enge.fr> wrote:
>
>> So in a first step, if I am limited to sudo, I do "sudo su -" to
>> become root.
> Thanks a lot, that seems to work: I don't have the same errors anymore
> (I've other errors related to i686 though).
You can also use
--8<---------------cut here---------------start------------->8---
sudo -E ./pre-inst-env guix system reconfigure ...
--8<---------------cut here---------------end--------------->8---
To avoid bad surprises, make sure that you've run
--8<---------------cut here---------------start------------->8---
./configure --localstatedir=/var --sysconfdir=/etc
--8<---------------cut here---------------end--------------->8---
before that.
--
Thanks,
Maxim
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-04-20 12:47 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-17 23:15 Is it possible to system reconfigure from a local guix git? Denis 'GNUtoo' Carikli
2023-04-18 0:07 ` Felix Lechner via
2023-04-18 7:03 ` Andreas Enge
2023-04-19 15:29 ` Denis 'GNUtoo' Carikli
2023-04-20 12:46 ` Maxim Cournoyer
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.