From: "Ludovic Courtès" <ludo@gnu.org>
To: "Jakob L. Kreuze" <zerodaysfordays@sdf.lonestar.org>
Cc: 36876@debbugs.gnu.org, Jesse Gibbons <jgibbons2357@gmail.com>
Subject: bug#36876: guix system delete-generations removes custom boot menu entries
Date: Thu, 29 Aug 2019 10:02:49 +0200 [thread overview]
Message-ID: <877e6wl7py.fsf@gnu.org> (raw)
In-Reply-To: <87r255dl5g.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Wed, 28 Aug 2019 23:39:55 +0200")
Hi there!
Ludovic Courtès <ludo@gnu.org> skribis:
> The attached patches should fix this. I’ve successfully deleted a
> generation on my system. :-) I don’t have extra menu entries though, so
> it’d be great if you could give it a try.
So I tried it on my laptop: I added a dummy menu entry, reconfigured,
rebooted, then ran “guix system delete-generations N”, and I confirm
that it preserves the extra menu entry.
There was a typo though:
> --- a/gnu/system.scm
> +++ b/gnu/system.scm
> @@ -116,6 +116,7 @@
> boot-parameters-label
> boot-parameters-root-device
> boot-parameters-bootloader-name
> + boot-parameters-bootloader-menu-entries
> boot-parameters-store-device
> boot-parameters-store-mount-point
> boot-parameters-kernel
> @@ -251,6 +252,8 @@ directly by the user."
> ;; OS's root file system, so it might be a device path like "/dev/sda3".
> (root-device boot-parameters-root-device)
> (bootloader-name boot-parameters-bootloader-name)
> + (bootloader-menu-entries ;list of <menu-entry>
> + boot-parameters-bootloader-menu-entries)
> (store-device boot-parameters-store-device)
> (store-mount-point boot-parameters-store-mount-point)
> (kernel boot-parameters-kernel)
> @@ -297,6 +300,11 @@ file system labels."
> ((_ args) args)
> (#f 'grub))) ; for compatibility reasons.
>
> + (bootloader-menu-entries
> + (match (assq 'bootloader-menu-entries rest)
> + ((_ . entries) (map sexp->menu-entry entries))
^
There shouldn’t be a dot here.
I’ll go ahead and push these patches (with this correction) if there are
no objections.
Thanks,
Ludo’.
next prev parent reply other threads:[~2019-08-29 8:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-31 15:48 bug#36876: guix system delete-generations removes custom boot menu entries Jesse Gibbons
2019-08-05 16:05 ` Jakob L. Kreuze
2019-08-06 3:12 ` Jesse Gibbons
2019-08-06 13:22 ` Jakob L. Kreuze
2019-08-06 16:32 ` Danny Milosavljevic
2019-08-06 16:35 ` Danny Milosavljevic
2019-08-06 18:27 ` Jakob L. Kreuze
2019-08-23 12:28 ` Ludovic Courtès
2019-08-28 15:38 ` Jakob L. Kreuze
2019-08-28 21:39 ` Ludovic Courtès
2019-08-29 8:02 ` Ludovic Courtès [this message]
2019-08-29 23:35 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877e6wl7py.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=36876@debbugs.gnu.org \
--cc=jgibbons2357@gmail.com \
--cc=zerodaysfordays@sdf.lonestar.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).