From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KMepAmU9dWQk7gAASxT56A (envelope-from ) for ; Tue, 30 May 2023 02:03:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EGh7AmU9dWT+ewEAauVa8A (envelope-from ) for ; Tue, 30 May 2023 02:03:49 +0200 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 C55103F09D for ; Tue, 30 May 2023 02:03:48 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3mpZ-00032D-OP; Mon, 29 May 2023 20:03:17 -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 1q3mpW-00031p-I7 for help-guix@gnu.org; Mon, 29 May 2023 20:03:14 -0400 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3mpV-0008Ok-3m for help-guix@gnu.org; Mon, 29 May 2023 20:03:14 -0400 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-55586f22ab7so2374100eaf.2 for ; Mon, 29 May 2023 17:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685404991; x=1687996991; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=cAgdpe8g12W0eIMOV3Ov7E04o4KMbIolVIbnVhPhatQ=; b=gmpE2ix8IDp/gRQ+J40H00KO+dvRGWxG5v5Umbn8zWsDy0kQeKwAESqdEIpZGwKwnw d6WvZ7M/hfyORtKhXd2XENc9s49AD5OX44EkMzmO+2WP2f/v4ADmZSQpyC7PAz8hwx1q lL1ARNqIaFF906qymLwuz3hyjOHjcOxMSKAzG51gzJi3pXjCQYaXtMInHvJjHHAgj7kx s6LBkUOkgiqgv7e6u1oKf2wDcOu53OiF+ZbcrQweQl7JrRa/rI7ANQ0VUBR/QZIOrqu6 j/c/AQvA3HKZv1gawglC2DBgKVfCb3Z1zvdR6qqR++bUc0VJQ7PLYvk9JVnUm0jnLVb9 sETQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685404991; x=1687996991; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cAgdpe8g12W0eIMOV3Ov7E04o4KMbIolVIbnVhPhatQ=; b=bZEI3aSG9k+dhMwBC6TJK96eAt0CUOsy4FlcG/Iog8HAYxXOkbrwiav2JAVjPHB74F 9H+vXf40cKxPfxklJI3vjgKpgH4BCVkFN0CJO5XFzd63eMYE6QEkzcuzlMSss7k4isqW fgW+Oowzyx0Tn+PuRnBwGVHCJ1PvaZfPdrMvfrtcmw2MnGw63WMIAboeIWuHQBYDjD0I 97oVMeYPh5QQqe8GEYRElqdiWA5z/hQK2/Q9FHCkznknMVVpsbIWePzLnJSCE+8OjvAK My+ypvUoC5P1A6g1YMX8LUw03rSnCyBdpJV+gmJth72XSac+GXhwx+loLCyIOjQeBEjT 99zg== X-Gm-Message-State: AC+VfDzjLJFm/jyNigULR9k879wGE58Yu2fYi0OrbXoPYwiEK8S5fONF AGZulYs4LDvj86/u4qq4N08Ct/zqhZ5wCCcrlQgyyskMkD4= X-Google-Smtp-Source: ACHHUZ45Jd65KiGjLiTI9TCO05ivSvkdfLY/pjthJv2ZGfaH3TkUKnnza12Y0Oo8yFNWyXRpPkqPXGbz+u/eceYQzdc= X-Received: by 2002:a4a:4fd2:0:b0:555:51a9:5bff with SMTP id c201-20020a4a4fd2000000b0055551a95bffmr212016oob.8.1685404991053; Mon, 29 May 2023 17:03:11 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Nathan Dehnel Date: Mon, 29 May 2023 19:02:59 -0500 Message-ID: Subject: Re: GRUB fallback on boot failure To: Felix Lechner Cc: help-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::c2c; envelope-from=ncdehnel@gmail.com; helo=mail-oo1-xc2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685405028; a=rsa-sha256; cv=none; b=A4fLIdd1rJUmDCs9prkyfaNSmv57dZqFOFpIcg2lqHFaeYYsiygIHY9lJpFleseHrKKbwF 7LK6EYFlB0qEX7CJyjBHJVNEaEY8GJYHnHCcsWPCn10Z+0PO19S+ZjMncqSjwJPguoCZ8r lU13uJQoiHzMlWJVPWRgUN0whVR57c3bXJEJM6KzNe8PmHaN3dt4n6OWIn1KNELpDxB+uF 8PLMMglvJo69X207wswsz69StPEztovUT7PP4SIp3QSZ1Y0XyZVZw65eciQv6312hhsQOI JFhuCG6ezxQ1sKKURPw5G/knrdgHxv5xpQbeMWhFf+7ZfD5HQFTpef/RQ/Utgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=gmpE2ix8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685405028; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=cAgdpe8g12W0eIMOV3Ov7E04o4KMbIolVIbnVhPhatQ=; b=chsk0n5lP6MxyGMrFE+a4p3Dfg58ccp32Q60W1fgvVrQBfe+q6PythBpFFTyUjIcdJVZ7l t7rBxXdh1UkmzbfxKG/+WHd6ZlJyixOGSVbFkg3+r+xp2btAQTbpELEwMY2QMFL+KUDX+m SjGe40FIdJMfTLt29Yss7Bvc4ikyU1HqLSMxqVJ4HsyVptGnY3wNreLQNCTkq1vka8dC6v nFk/blaj0I0NB/z2n7gPdOUKkNiMlTBy7sFOar/OGkp9c1SaWRAA0It3RZdXul++kbQUr1 OLkaP230wQHYw6lz+ntkF1tHakLFhw/W4hyMRNNsQzWhOdz/Fw4Lmz7Jh0XuEA== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=gmpE2ix8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -6.30 X-Spam-Score: -6.30 X-Migadu-Queue-Id: C55103F09D X-TUID: FYiD+LfUPiSZ >I believe it will work The problem is I didn't see any documented way to write verbatim to /etc/default/grub from the service, so I'm wondering if I need to write a feature request >Ideally, you would merely "roll back" to the system iteration you identified as stable. Then the generation that 'guix system list-generations' shows as (current) corresponds to the system you are in, and grub.cfg will be rewritten to put that iteration on top. In that workflow, there is no need to touch the default. Is it possible to do this without user interaction in the event of a failure to boot? On Mon, May 29, 2023 at 6:29=E2=80=AFPM Felix Lechner wrote: > > Hi Nathan, > > On Sat, May 27, 2023 at 3:52=E2=80=AFPM Nathan Dehnel wrote: > > > > My understanding is this is done by adding the > > following to /etc/default/grub: > > > > export GRUB_FALLBACK=3D"1 2...{number of entries}" > > GRUB_DEFAULT=3Dsaved > > GRUB_SAVEDEFAULT=3Dtrue > > I believe it will work, but booting older GRUB entries in Guix comes > with a distinct inconvenience. To my knowledge, it is difficult to > tell in which iteration you are once you have booted. > > Ideally, you would merely "roll back" to the system iteration you > identified as stable. Then the generation that 'guix system > list-generations' shows as (current) corresponds to the system you are > in, and grub.cfg will be rewritten to put that iteration on top. In > that workflow, there is no need to touch the default. > > Personally, I think it's easier to maintain (and update) but please > feel free to experiment to find out what works best for you. > > Kind regards > Felix