On 2023-04-12 at 07:44, Michel Verdier wrote: > Le 12 avril 2023 The Wanderer a écrit : > >> Without anything more, wouldn't that just result in an extra >> GRUB-menu entry pointing to the same copy of the kernel/etc.? > > Of course he can change menuentry to point to another kernel/initram
From what I understand matters, the problem is that after he creates the copy of the initrd, update-initramfs (as run by update-grub) fails, because the underlying files which it thinks would be needed by an initrd with the filename that the copy has don't exist. >> As I think I understand matters, the goal is to have a duplicate >> copy of the kernel/etc. *and* a separate GRUB menu entry pointing >> to it, so that if something blows away or otherwise messes up the >> original the duplicate is still around to serve as a fallback. > > Yes if he points menuentry to the backup he got this fallback. The question would therefore be how to have the backup copy without resulting in this update-initramfs failure happening. About the only possibility I can think of would be to *also* copy the respective underlying files, so that they are available under the name update-initramfs expects to see. That would probably make the backup - and the process of creating it - noticeably more unwieldy, however. And it's entirely possible that there's some aspect of the process I'm not seeing which would mean that that wouldn't work. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
signature.asc
Description: OpenPGP digital signature