GNU bug report logs - #40997
[raid] The bootloader can only be installed to a single drive

Previous Next

Package: guix;

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

Date: Fri, 1 May 2020 13:47:01 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40997 in the body.
You can then email your comments to 40997 AT debbugs.gnu.org in the normal way.

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#40997; Package guix. (Fri, 01 May 2020 13:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to maxim.cournoyer <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Fri, 01 May 2020 13:47:01 GMT) Full text and rfc822 format available.

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

From: maxim.cournoyer <at> gmail.com
To: bug-guix <bug-guix <at> gnu.org>
Subject: [raid] The bootloader can only be installed to a single drive
Date: Fri, 01 May 2020 09:45:00 -0400
Using Guix System, the bootloader declaration doesn't currently seem to
support being installed to multiple drives:

--8<---------------cut here---------------start------------->8---
(bootloader (bootloader-configuration
                 (bootloader grub-bootloader)
                 (target "/dev/sda")
                 (terminal-outputs '(console))))
 --8<---------------cut here---------------end--------------->8---

I suggest to change it so that target can be passed a list like
--8<---------------cut here---------------start------------->8---
(bootloader (bootloader-configuration
                 (bootloader grub-bootloader)
                 (target '("/dev/sda" "/dev/sdb"))
                 (terminal-outputs '(console))))
 --8<---------------cut here---------------end--------------->8---

This is useful when trying to boot a degraded RAID array.

Maxim




Information forwarded to bug-guix <at> gnu.org:
bug#40997; Package guix. (Sun, 08 Aug 2021 04:26:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 40997 <at> debbugs.gnu.org
Subject: Re: bug#40997: [raid] The bootloader can only be installed to a
 single drive
Date: Sun, 08 Aug 2021 00:25:01 -0400
[Message part 1 (text/plain, inline)]
Hello,

maxim.cournoyer <at> gmail.com writes:

> Using Guix System, the bootloader declaration doesn't currently seem to
> support being installed to multiple drives:
>
> (bootloader (bootloader-configuration
>                  (bootloader grub-bootloader)
>                  (target "/dev/sda")
>                  (terminal-outputs '(console))))
>  --8<---------------cut here---------------end--------------->8---
>
> I suggest to change it so that target can be passed a list like
>
> (bootloader (bootloader-configuration
>                  (bootloader grub-bootloader)
>                  (target '("/dev/sda" "/dev/sdb"))
>                  (terminal-outputs '(console))))
>  --8<---------------cut here---------------end--------------->8---
>
> This is useful when trying to boot a degraded RAID array.

The following patches do exactly this (target becomes the plural
targets).  I tested it on my system, disconnecting the first drive of my
RAID1 array, and could at least boot to GRUB fine (although full boot
failed due to https://issues.guix.gnu.org/40999).

Booting a VM using an image generated from the bare-bones.tmpl template
also worked fine.

[0001-gnu-bootloader-Support-multiple-targets.patch (text/x-patch, attachment)]
[0002-Migrate-to-the-new-targets-field-of-bootloader-confi.patch (text/x-patch, attachment)]
[Message part 4 (text/plain, inline)]
Thanks,

Maxim

Added tag(s) patch. Request was from Maxim Cournoyer <maxim.cournoyer <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 09 Aug 2021 15:08:02 GMT) Full text and rfc822 format available.

Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sun, 29 Aug 2021 05:20:02 GMT) Full text and rfc822 format available.

Notification sent to maxim.cournoyer <at> gmail.com:
bug acknowledged by developer. (Sun, 29 Aug 2021 05:20:02 GMT) Full text and rfc822 format available.

Message #15 received at 40997-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: 40997-done <at> debbugs.gnu.org
Subject: Re: bug#40997: [raid] The bootloader can only be installed to a
 single drive
Date: Sun, 29 Aug 2021 01:19:26 -0400
Hello,

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

> Hello,
>
> maxim.cournoyer <at> gmail.com writes:
>
>> Using Guix System, the bootloader declaration doesn't currently seem to
>> support being installed to multiple drives:
>>
>> (bootloader (bootloader-configuration
>>                  (bootloader grub-bootloader)
>>                  (target "/dev/sda")
>>                  (terminal-outputs '(console))))
>>  --8<---------------cut here---------------end--------------->8---
>>
>> I suggest to change it so that target can be passed a list like
>>
>> (bootloader (bootloader-configuration
>>                  (bootloader grub-bootloader)
>>                  (target '("/dev/sda" "/dev/sdb"))
>>                  (terminal-outputs '(console))))
>>  --8<---------------cut here---------------end--------------->8---
>>
>> This is useful when trying to boot a degraded RAID array.
>
> The following patches do exactly this (target becomes the plural
> targets).  I tested it on my system, disconnecting the first drive of my
> RAID1 array, and could at least boot to GRUB fine (although full boot
> failed due to https://issues.guix.gnu.org/40999).
>
> Booting a VM using an image generated from the bare-bones.tmpl template
> also worked fine.

Pushed with commit 2ca982ff41270288913ad6b7d5d9e1cad87b06d9.

Closing!

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 26 Sep 2021 11:24:06 GMT) Full text and rfc822 format available.

bug unarchived. Request was from "Suhail Singh" <suhailsingh247 <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 06 Dec 2024 16:37:02 GMT) Full text and rfc822 format available.

bug archived. Request was from "Suhail Singh" <suhailsingh247 <at> gmail.com> to control <at> debbugs.gnu.org. (Fri, 06 Dec 2024 16:37:02 GMT) Full text and rfc822 format available.

This bug report was last modified 195 days ago.

Previous Next


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