From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id mPlOBoo3VWaqyAAAA41jLg (envelope-from ) for ; Tue, 28 May 2024 03:46:50 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cIXlOIk3VWbMAwEA62LTzQ (envelope-from ) for ; Tue, 28 May 2024 03:46:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=llkDXr9c; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1716860809; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=PQnpjJlxNqg6x51vJECDn2ZnyXxPukSZBcwOy9wxBC0=; b=UVOtOpTXo7devmUNB6SgkzneG5yclUeYk1PtJ32TxZNovvDVEH1R3DdyrZ3blGMeTgoAnC uUNkkAl/2x6ZiyH6qyiGUlfxe8mWk2743D8+K88GBmGjas0JDGSIWymVmbH3BD+XO+IVFf P+RWOp86sEuoebHQrlOjeZ8E0PbfriJdxMKJn6G6IPThZ62KUaUToVvUFDrySXuVagEYb6 Eo0J09pm3HID70gep/49ASMcakMGdvMSzK0AG/gcWboRNcP4wIrxJvGrpbuWcWf4G1b5Ur e5x83Wllz7HL/BnCLN8ZGmih9MDFBFpeEQLwVdiD3ZRngMrbO13WhIblO6sT4A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=llkDXr9c; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1716860809; a=rsa-sha256; cv=none; b=nXuBvvbvJvgQp7quDWQpGfxMhkNiEkJVpsKVRSKOGPxPrIWb7HVyZSGaKhd2l8ezjeO8Mm rUuxT235J++leiu6ZJSOKrIIMkifXaGuvwozRyYO4V0V6UCOokgB/1+Dv2x1N1g65XUOUg eHEYoveCWH5NQ4dIlL+bAy5t4K+V44Fn5rbZZaxCyKCZOJYO71p+pChqB/r6ixdLPVIsy2 nBL8WK3kqeAEHbxCfnaSV1tgKxW2uuqG11v8W6aRs8Xvk/meAusnc5J3ZVxvXwb43jZG46 6W5VJj/PTjir1l554/mjOj0/WKvDzndmj3n0cvPtyG6TsB6iOFZFJZekBFp3RQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CE0D83A590 for ; Tue, 28 May 2024 03:46:49 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBlus-0006f8-Sx; Mon, 27 May 2024 21:46:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBlum-0006ds-2m for guix-devel@gnu.org; Mon, 27 May 2024 21:46:13 -0400 Received: from mail-108-mta248.mxroute.com ([136.175.108.248]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBluk-0003Ni-2k for guix-devel@gnu.org; Mon, 27 May 2024 21:46:11 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta248.mxroute.com (ZoneMTA) with ESMTPSA id 18fbce04267000efce.002 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 28 May 2024 01:46:04 +0000 X-Zone-Loop: 5613a58bae28e71e220b3f8e6ea99b6ecf709bb12895 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PQnpjJlxNqg6x51vJECDn2ZnyXxPukSZBcwOy9wxBC0=; b=llkDXr9cHxNGi/WCLEKEl/NH57 9arjJTGHNXQ+M0om3iNXocGHbD3kq20br89NbpX9FzmKLMgEAyakA5qoVYRe5u/6q5fJWlTXYrbWk JrOKbkcf291b7MplWirvWu8ioIpewcYN7uVIDw85A8jBWTk7FNp5sAwCNFYmky60jfSZgC+QuVy9j zfvFUIStCoxxJjDiXxTF+uVm4x7z4M8M/TEWZLJKzgUHfvnRDm2juk0aY8DD1yymQtVrHnWdPXOhK YSBYoTYwMxoKYpFR8i4McPe0ZSi1KURCK9YMOXmyWt0bPmuCCQYe97RbSbhDHqKfo1eBc9wT1qXA5 b6SBcHFw==; From: Richard Sent To: Nathan Dehnel Cc: raingloom , guix-devel@gnu.org Subject: Re: watchdog triggered auto-rollback In-Reply-To: (Nathan Dehnel's message of "Mon, 27 May 2024 19:52:27 -0500") References: Date: Mon, 27 May 2024 21:46:00 -0400 Message-ID: <87ikyy909z.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.248; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta248.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.29 X-Spam-Score: -6.29 X-Migadu-Queue-Id: CE0D83A590 X-Migadu-Scanner: mx13.migadu.com X-TUID: Xiy83EiOn/mv Nathan Dehnel writes: > GRUB: https://www.gnu.org/software/grub/manual/grub/html_node/fallback.html > GRUB supports falling back to another boot entry if the machine fails > to boot. This could be integrated with guix so GRUB falls back to a > previous guix system generation. This covers the case of "we can't > start a watchdog service because the system won't boot". How does GRUB determine a boot failed? Does it have to be something drastic like "kernel failed to mount the initrd" or can it catch more complex errors? I believe that if the initrd fails during startup it will abort into an interactive Guile REPL. This might hurt GRUB's ability to detect something went wrong since the kernel would still be running. A similar case may apply if Shepherd gets stuck during system initialization. -- Take it easy, Richard Sent Making my computer weirder one commit at a time.