GNU bug report logs - #77365
no error handling on activation scripts

Previous Next

Package: guix;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Sat, 29 Mar 2025 14:47:02 UTC

Severity: normal

Merged with 76698

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

To reply to this bug, email your comments to 77365 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#77365; Package guix. (Sat, 29 Mar 2025 14:47:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 29 Mar 2025 14:47:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: no error handling on activation scripts
Date: Sat, 29 Mar 2025 23:45:22 +0900
Hi,

Currently, every activation gexp added to the activation-service-type
ends up in a script loaded via primitive-load of the main activation
script, which is in turn loaded by the boot script entry point.

This means that raising an exception in the activation scripts may abort
the boot script and thus the boot itself.

It would probably be nicer and more useful to handle and report the
errors, while attempting to continue booting.

-- 
Thanks,
Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#77365; Package guix. (Mon, 31 Mar 2025 16:47:01 GMT) Full text and rfc822 format available.

Message #8 received at 77365 <at> debbugs.gnu.org (full text, mbox):

From: Hilton Chain <hako <at> ultrarare.space>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 77365 <at> debbugs.gnu.org
Subject: Re: bug#77365: no error handling on activation scripts
Date: Tue, 01 Apr 2025 00:45:52 +0800
Hi Maxim,

On Sat, 29 Mar 2025 22:45:22 +0800,
Maxim Cournoyer wrote:
>
> Hi,
>
> Currently, every activation gexp added to the activation-service-type
> ends up in a script loaded via primitive-load of the main activation
> script, which is in turn loaded by the boot script entry point.
>
> This means that raising an exception in the activation scripts may abort
> the boot script and thus the boot itself.
>
> It would probably be nicer and more useful to handle and report the
> errors, while attempting to continue booting.

This issue is reported in bug#76698, a solution is proposed there but I haven't
worked on it yet.

Thanks




Information forwarded to bug-guix <at> gnu.org:
bug#77365; Package guix. (Wed, 02 Apr 2025 05:43:02 GMT) Full text and rfc822 format available.

Message #11 received at 77365 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Hilton Chain <hako <at> ultrarare.space>
Cc: 77365 <at> debbugs.gnu.org
Subject: Re: bug#77365: no error handling on activation scripts
Date: Wed, 02 Apr 2025 14:42:26 +0900
Hi,

Hilton Chain <hako <at> ultrarare.space> writes:

[...]

> This issue is reported in bug#76698, a solution is proposed there but I haven't
> worked on it yet.

Thanks, I've merged both.

-- 
Maxim




Merged 76698 77365. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 02 Apr 2025 05:43:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 77365 <at> debbugs.gnu.org and Maxim Cournoyer <maxim.cournoyer <at> gmail.com> Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 26 May 2025 13:17:03 GMT) Full text and rfc822 format available.

This bug report was last modified 17 days ago.

Previous Next


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