* `guix system image` on a local, dirty checkout
@ 2024-07-12 21:27 Attila Lendvai
2024-07-12 22:00 ` Vincent Legoll
2024-07-12 22:14 ` Richard Sent
0 siblings, 2 replies; 4+ messages in thread
From: Attila Lendvai @ 2024-07-12 21:27 UTC (permalink / raw)
To: guix-devel
dear Guix,
i'm trying to generate a guix image from my modified guix checkout. this is a baby step towards my ultimate goal, to add BPI-R4 support.
./pre-inst-env guix system image --system=armhf-linux -e '(begin (use-modules (gnu system) (gnu bootloader) (gnu bootloader u-boot) (gnu system install)) (operating-system (inherit installation-os) (bootloader (bootloader-configuration (bootloader u-boot-bootloader) (target #f)))))'
[...]
Updating channel 'guix' from Git repository at '/home/alendvai/workspace/guix/guix/', branch 'attila'...
Authenticating channel 'guix', commits 9edb3f6 to becd9ff (205 new commits)...
▕▊ ▏guix system: error: commit 53074836dbe2066ef082e01e5f22d1295847a5b3 not signed by an authorized key: 69DA 8D74 F179 7AD6 7806 EE06 FEFA 9FE5 5CF6 E3CD
the commit mentioned is the commit where i add my key to the .guix-authorizations (and this is the commit that i use as channel intro commit).
is there a way to make `guix system image` work from a guix checkout that contains unauthorized commits?
or is there an equivalent of channel intro commits in this context?
or something else?
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
There certainly are laws, but human words cannot make one.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: `guix system image` on a local, dirty checkout
2024-07-12 21:27 `guix system image` on a local, dirty checkout Attila Lendvai
@ 2024-07-12 22:00 ` Vincent Legoll
2024-07-12 22:05 ` Attila Lendvai
2024-07-12 22:14 ` Richard Sent
1 sibling, 1 reply; 4+ messages in thread
From: Vincent Legoll @ 2024-07-12 22:00 UTC (permalink / raw)
To: Attila Lendvai; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
Hello,
Not about your commit authentication problem.
On Fri, Jul 12, 2024 at 9:28 PM Attila Lendvai <attila@lendvai.name> wrote:
> add BPI-R4 support
> [...]
> ./pre-inst-env guix system image --system=armhf-linux [...]
Why using armhf instead of aarch64 for the BPI-R4 ?
--
Vincent Legoll
[-- Attachment #2: Type: text/html, Size: 685 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: `guix system image` on a local, dirty checkout
2024-07-12 21:27 `guix system image` on a local, dirty checkout Attila Lendvai
2024-07-12 22:00 ` Vincent Legoll
@ 2024-07-12 22:14 ` Richard Sent
1 sibling, 0 replies; 4+ messages in thread
From: Richard Sent @ 2024-07-12 22:14 UTC (permalink / raw)
To: Attila Lendvai; +Cc: guix-devel
Hi Attila,
Attila Lendvai <attila@lendvai.name> writes:
> is there a way to make `guix system image` work from a guix checkout that contains unauthorized commits?
>
> or is there an equivalent of channel intro commits in this context?
>
> or something else?
I believe you would have to follow a similar process as what I did at
https://issues.guix.gnu.org/71299#1.
> Testing this is also a pain as well because it involves changing the
> build daemon. In my experience the easiest way is:
>
> 1. Change the commit field for the guix package in
> package-management.scm to the commit you want to check
>
> 2. Update the url field for the guix package to
> "file:///path/to/guix/clone"
>
> 3. Forcefully disable authentication in guix/build-system/channel.scm
>
> 4. Generate an installer image via $ ./pre-inst-env guix system image
> gnu/system/install.scm --image-type=iso9660, then boot from that image
> and observe the output.
I encountered this issue because the guix daemon put into a system image
is based on the "guix" package, not the guix used to build said system
image.
If I recall correctly I disabled authentication by setting the default
authenticate? value in build-channels to #f. You might be able to get
away with just step 3 depending on what exactly you are changing in your
checkout.
--
Take it easy,
Richard Sent
Making my computer weirder one commit at a time.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-12 22:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12 21:27 `guix system image` on a local, dirty checkout Attila Lendvai
2024-07-12 22:00 ` Vincent Legoll
2024-07-12 22:05 ` Attila Lendvai
2024-07-12 22:14 ` Richard Sent
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).