X-Loop: help-debbugs@HIDDEN Subject: bug#48172: support split /boot partition Resent-From: Vagrant Cascadian <vagrant@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: help-debbugs@HIDDEN Resent-Date: Sun, 02 May 2021 21:17:01 +0000 Resent-Message-ID: <handler.48172.B.16199901983423 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 48172 X-GNU-PR-Package: debbugs.gnu.org X-GNU-PR-Keywords: To: Joshua Branson <jbranso@HIDDEN>, Vladilen Kozin <vladilen.kozin@HIDDEN> Cc: help-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.16199901983423 (code B ref -1); Sun, 02 May 2021 21:17:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 May 2021 21:16:38 +0000 Received: from localhost ([127.0.0.1]:44774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ldJS9-0000t9-QJ for submit <at> debbugs.gnu.org; Sun, 02 May 2021 17:16:38 -0400 Received: from lists.gnu.org ([209.51.188.17]:41190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vagrant@HIDDEN>) id 1ldJS6-0000t3-Ri for submit <at> debbugs.gnu.org; Sun, 02 May 2021 17:16:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <vagrant@HIDDEN>) id 1ldJS6-00080s-Ax; Sun, 02 May 2021 17:16:34 -0400 Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:51620) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <vagrant@HIDDEN>) id 1ldJS4-0001Tu-Mt; Sun, 02 May 2021 17:16:34 -0400 Received: from localhost (97-120-1-76.ptld.qwest.net [97.120.1.76]) (Authenticated sender: vagrant@HIDDEN) by cascadia.aikidev.net (Postfix) with ESMTPSA id 826B11AB0A; Sun, 2 May 2021 14:16:29 -0700 (PDT) From: Vagrant Cascadian <vagrant@HIDDEN> In-Reply-To: <875z038851.fsf@HIDDEN> References: <CACw=CXP2rKeVavgZ-UZrRoZRpaoL5zPvjJPorjAiAYY5eKUesQ@HIDDEN> <875z038851.fsf@HIDDEN> Date: Sun, 02 May 2021 14:16:24 -0700 Message-ID: <871raovntj.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=2600:3c01:e000:267:0:a171:de7:c; envelope-from=vagrant@HIDDEN; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain On 2021-04-30, Joshua Branson wrote: > Vladilen Kozin <vladilen.kozin@HIDDEN> writes: >> Is there a way out of this predicament? I can see two options. >> (1) can some Linux distro/bootloader do the FreeBSD trick: start on >> USB but then chain-boot Guix off that SSD? IIUC grub's chain-boot is >> of no help here, cause it simply won't even see that drive; >> (2) install and run Guix off USB but somehow ensure that "IO heavy" >> bits are mounted from that SSD. There's gotta be some (file-systems >> ...) combined with the way I `guix system init config.scm /mnt` (or >> rather what else I mount under /mnt where) that would achieve this? ... > I think number 1 is your "best" bet. I've no idea how to do that. > > Number 2 is probably your "easiest" option. /boot/ should be put on the > usb, and I suppose that the / should be on the SSD...You would install > this way. That's probably how I'd do it. Or rather that is how I would > try to do it. :) Unfortunately, guix doesn't currently support booting off of a separate /boot partition, since the kernel and initrd are in /gnu/store; your bootloader needs to be able to mount the partition that /gnu/store is located on. The workaround would be to manually copy all files mentioned in grub.cfg (kernel, initrd, possibly others) into a partition somewhere on boot media, and tweak the grub.cfg appropriately... There are several cases where this sort of thing would be desireable: * The above scenario; the system does not expose an NVMe drive from EFI or BIOS. * Using u-boot and you want root on lvm, raid, encryption, etc. which u-boot does not support I've been meaning to file a bug on this for ages; I have BCCed bug-guix now which will hopefully work. :) Another more complicated option would be to use kexec; where you boot one kernel and maybe a minimal rootfs, and load a new kernel and initrd into ram, which uses the kernel drivers and then runs "kexec" to switch to the newly loaded kernel... not sure how reliable that is, but it is possible. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYI8WqQAKCRDcUY/If5cW qpJZAQD4uj8gLq8Nq5e+6CKX7iiRyYtAIDdK7WOnwxN5RlX1FQEAmoK3Euaps0Dr v+yNp/04w1G9Ud0WRn5mtmhw7cBONQs= =1vBT -----END PGP SIGNATURE----- --=-=-=--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Vagrant Cascadian <vagrant@HIDDEN> Subject: bug#48172: Acknowledgement (support split /boot partition) Message-ID: <handler.48172.B.16199901983423.ack <at> debbugs.gnu.org> References: <871raovntj.fsf@yucca> X-Gnu-PR-Message: ack 48172 X-Gnu-PR-Package: debbugs.gnu.org Reply-To: 48172 <at> debbugs.gnu.org Date: Sun, 02 May 2021 21:17:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): help-debbugs@HIDDEN If you wish to submit further information on this problem, please send it to 48172 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 48172: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48172 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#48172: support split /boot partition Resent-From: Vagrant Cascadian <vagrant@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: help-debbugs@HIDDEN Resent-Date: Sun, 02 May 2021 21:49:01 +0000 Resent-Message-ID: <handler.48172.B.161999210212968 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 48172 X-GNU-PR-Package: debbugs.gnu.org X-GNU-PR-Keywords: To: bug-guix@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.161999210212968 (code B ref -1); Sun, 02 May 2021 21:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 May 2021 21:48:22 +0000 Received: from localhost ([127.0.0.1]:44934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ldJws-0003N6-30 for submit <at> debbugs.gnu.org; Sun, 02 May 2021 17:48:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:48852) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vagrant@HIDDEN>) id 1ldJwq-0003N0-1F for submit <at> debbugs.gnu.org; Sun, 02 May 2021 17:48:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <vagrant@HIDDEN>) id 1ldJwp-0004CW-PZ for bug-guix@HIDDEN; Sun, 02 May 2021 17:48:19 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:47170) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <vagrant@HIDDEN>) id 1ldJwn-00056b-Tn for bug-guix@HIDDEN; Sun, 02 May 2021 17:48:19 -0400 Received: from localhost (97-120-1-76.ptld.qwest.net [97.120.1.76]) (Authenticated sender: vagrant@HIDDEN) by cascadia.aikidev.net (Postfix) with ESMTPSA id 1E36C1AB0A for <bug-guix@HIDDEN>; Sun, 2 May 2021 14:48:16 -0700 (PDT) From: Vagrant Cascadian <vagrant@HIDDEN> In-Reply-To: <871raovntj.fsf@yucca> References: <CACw=CXP2rKeVavgZ-UZrRoZRpaoL5zPvjJPorjAiAYY5eKUesQ@HIDDEN> <875z038851.fsf@HIDDEN> <871raovntj.fsf@yucca> Date: Sun, 02 May 2021 14:48:12 -0700 Message-ID: <87pmy8u7s3.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@HIDDEN; helo=cascadia.aikidev.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain On 2021-04-30, Joshua Branson wrote: > Vladilen Kozin <vladilen.kozin@HIDDEN> writes: >> Is there a way out of this predicament? I can see two options. >> (1) can some Linux distro/bootloader do the FreeBSD trick: start on >> USB but then chain-boot Guix off that SSD? IIUC grub's chain-boot is >> of no help here, cause it simply won't even see that drive; >> (2) install and run Guix off USB but somehow ensure that "IO heavy" >> bits are mounted from that SSD. There's gotta be some (file-systems >> ...) combined with the way I `guix system init config.scm /mnt` (or >> rather what else I mount under /mnt where) that would achieve this? ... > I think number 1 is your "best" bet. I've no idea how to do that. > > Number 2 is probably your "easiest" option. /boot/ should be put on the > usb, and I suppose that the / should be on the SSD...You would install > this way. That's probably how I'd do it. Or rather that is how I would > try to do it. :) Unfortunately, guix doesn't currently support booting off of a separate /boot partition, since the kernel and initrd are in /gnu/store; your bootloader needs to be able to mount the partition that /gnu/store is located on. The workaround would be to manually copy all files mentioned in grub.cfg (kernel, initrd, possibly others) into a partition somewhere on boot media, and tweak the grub.cfg appropriately... There are several cases where this sort of thing would be desireable: * The above scenario; the system does not expose an NVMe drive from EFI or BIOS. * Using u-boot and you want root on lvm, raid, encryption, etc. which u-boot does not support I've been meaning to file a bug on this for ages; I have BCCed bug-guix now which will hopefully work. :) Another more complicated option would be to use kexec; where you boot one kernel and maybe a minimal rootfs, and load a new kernel and initrd into ram, which uses the kernel drivers and then runs "kexec" to switch to the newly loaded kernel... not sure how reliable that is, but it is possible. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYI8eHAAKCRDcUY/If5cW qia5AQC6wZJTxvDFdIrr+XfIDLirm7gusFVaIAbYJZBJJV2a4wD/RCGdsmHygQJz ymHa9q+wxmhpQO7xTDqh84aCx+vvyQ0= =4uIW -----END PGP SIGNATURE----- --=-=-=--
Received: (at control) by debbugs.gnu.org; 4 May 2021 02:57:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 03 22:57:05 2021 Received: from localhost ([127.0.0.1]:50231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ldlFB-0004SH-Bo for submit <at> debbugs.gnu.org; Mon, 03 May 2021 22:57:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <rgm@HIDDEN>) id 1ldlF9-0004Rm-9L for control <at> debbugs.gnu.org; Mon, 03 May 2021 22:57:04 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40369) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <rgm@HIDDEN>) id 1ldlF3-0003El-Vx for control <at> debbugs.gnu.org; Mon, 03 May 2021 22:56:57 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from <rgm@HIDDEN>) id 1ldlF1-0005W6-RK for control <at> debbugs.gnu.org; Mon, 03 May 2021 22:56:57 -0400 Subject: control message for bug 48172 To: <control <at> debbugs.gnu.org> X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: <E1ldlF1-0005W6-RK@HIDDEN> From: Glenn Morris <rgm@HIDDEN> Date: Mon, 03 May 2021 22:56:55 -0400 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) reassign 48172 guix
X-Loop: help-debbugs@HIDDEN Subject: bug#48172: support split /boot partition Resent-From: Vagrant Cascadian <vagrant@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 22 May 2021 21:03:02 +0000 Resent-Message-ID: <handler.48172.B48172.162171737612706 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 48172 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48172 <at> debbugs.gnu.org Received: via spool by 48172-submit <at> debbugs.gnu.org id=B48172.162171737612706 (code B ref 48172); Sat, 22 May 2021 21:03:02 +0000 Received: (at 48172) by debbugs.gnu.org; 22 May 2021 21:02:56 +0000 Received: from localhost ([127.0.0.1]:40159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1lkYls-0003Is-Ke for submit <at> debbugs.gnu.org; Sat, 22 May 2021 17:02:56 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:55106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <vagrant@HIDDEN>) id 1lkYlq-0003Ic-UP for 48172 <at> debbugs.gnu.org; Sat, 22 May 2021 17:02:55 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100b]) (Authenticated sender: vagrant@HIDDEN) by cascadia.aikidev.net (Postfix) with ESMTPSA id 771F91A904 for <48172 <at> debbugs.gnu.org>; Sat, 22 May 2021 14:02:48 -0700 (PDT) From: Vagrant Cascadian <vagrant@HIDDEN> In-Reply-To: <87pmy8u7s3.fsf@yucca> References: <CACw=CXP2rKeVavgZ-UZrRoZRpaoL5zPvjJPorjAiAYY5eKUesQ@HIDDEN> <875z038851.fsf@HIDDEN> <871raovntj.fsf@yucca> <87pmy8u7s3.fsf@yucca> Date: Sat, 22 May 2021 14:02:14 -0700 Message-ID: <87zgwmlbxl.fsf@yucca> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain On 2021-05-02, Vagrant Cascadian wrote: > Unfortunately, guix doesn't currently support booting off of a separate > /boot partition, since the kernel and initrd are in /gnu/store; your > bootloader needs to be able to mount the partition that /gnu/store is > located on. > > The workaround would be to manually copy all files mentioned in grub.cfg > (kernel, initrd, possibly others) into a partition somewhere on boot > media, and tweak the grub.cfg appropriately... > > > There are several cases where this sort of thing would be desireable: > > * The above scenario; the system does not expose an NVMe drive from EFI > or BIOS. > > * Using u-boot and you want root on lvm, raid, encryption, etc. which > u-boot does not support * Using luks1 format for /boot and luks2 format for / (unless grub2 learns how to read luks2 already/soon) live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYKlxVgAKCRDcUY/If5cW qr1CAP9j91jpSYGditfU0ManqC3/qqfIraVBBZm04fdz0qlYWAD/YIm95VCTp0Nf 72cvCf8tYKu/ZN9tclu+lQCgFKNi1wg= =nTvr -----END PGP SIGNATURE----- --=-=-=--
X-Loop: help-debbugs@HIDDEN Subject: bug#48172: support split /boot partition Resent-From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Wed, 08 Jun 2022 18:47:01 +0000 Resent-Message-ID: <handler.48172.B48172.16547140006982 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 48172 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Vagrant Cascadian <vagrant@HIDDEN> Cc: 48172 <at> debbugs.gnu.org Received: via spool by 48172-submit <at> debbugs.gnu.org id=B48172.16547140006982 (code B ref 48172); Wed, 08 Jun 2022 18:47:01 +0000 Received: (at 48172) by debbugs.gnu.org; 8 Jun 2022 18:46:40 +0000 Received: from localhost ([127.0.0.1]:44294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1nz0hU-0001oY-5M for submit <at> debbugs.gnu.org; Wed, 08 Jun 2022 14:46:40 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]:37755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maxim.cournoyer@HIDDEN>) id 1nz0hQ-0001oK-Kt for 48172 <at> debbugs.gnu.org; Wed, 08 Jun 2022 14:46:39 -0400 Received: by mail-qt1-f178.google.com with SMTP id y15so15576437qtx.4 for <48172 <at> debbugs.gnu.org>; Wed, 08 Jun 2022 11:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=2GCbg3v3YKj5O+AAxD2swCMtTyUO+SdbWSfiJ7q/yfU=; b=Pk3v7pi3jFpUHw3Rw1Pz2UndyXiwRsLDW1FZASkks50qwiiEKQ3B1hiSLokLMp1WWc sHmTM1zWsH/DbqTpJIKUJFRdcgFHUJMr+ywUYlvPshn7P9lsmpzTNoYzD1TsntddEvI6 c8bT8nT3nsUQ0nrLEElMZkqlW56FkmMUPX9A3afuviy8vhyVmxMxtv8jKzl2mvX2dcPs QRf8flIAgGLYnvH32wRdZ5DGpSK7JdR9KTl8hQH+kkR58JizSEVS2hjIl3A4jA8fEKyk EJSSdJztBOeXT/LAlmYdpNofbVMmLVA/wPCsMPAmqZ9QmDA4hvRahy+WY9gjYVg3VYW7 GVsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=2GCbg3v3YKj5O+AAxD2swCMtTyUO+SdbWSfiJ7q/yfU=; b=1k9c4qXJnRqGDdryK2uvKVmnFr4O12IyAOotkHkhlsgSpNDDbSTU3330GvYhKy2egv O1EuELICIy6fygYJigupezATHuIGNCVAdOJ4pGCSWugHGqSPKSWLuK14jcxJzR6RSsYb 3FuPm7E/Jd+yeRzVcOIZIYB9sZyn6Q1JdYZM8mE292JhQ6VipIc/av+6HtVcoI3cFBKQ G749TDODn5MBEx6hOJ5HlsmKtZ6n8DQhAfw4Oj2XY9cJq5dVSzwEBOE2P2ah/YvRXkG3 ymGs5NaZBqit70+qsnkNpJi3n09wQl0ZaTgpB2biXvi6nmSB06xIsogl/gc0yRIXo9EQ yM/A== X-Gm-Message-State: AOAM532lj6DWy4EzqA4gNQy1cTP/hOE6lf+qVBN2QBVPqbdzJkB67Jj/ NbSn8dM51USiOPsP8UuPAY/VmtresUlANg== X-Google-Smtp-Source: ABdhPJxVy0WTCnJg7/7wcJsnMOUPxNcqHy/FDgzGjJtmD59TAznG4wRjAEVPk2bW/BstqEmTJigbwg== X-Received: by 2002:ac8:5c94:0:b0:305:20d:afab with SMTP id r20-20020ac85c94000000b00305020dafabmr3070474qta.262.1654713990135; Wed, 08 Jun 2022 11:46:30 -0700 (PDT) Received: from hurd (dsl-151-172.b2b2c.ca. [66.158.151.172]) by smtp.gmail.com with ESMTPSA id f15-20020ac86ecf000000b00304edcfa109sm6123221qtv.33.2022.06.08.11.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 11:46:28 -0700 (PDT) From: Maxim Cournoyer <maxim.cournoyer@HIDDEN> References: <CACw=CXP2rKeVavgZ-UZrRoZRpaoL5zPvjJPorjAiAYY5eKUesQ@HIDDEN> <875z038851.fsf@HIDDEN> <871raovntj.fsf@yucca> <87pmy8u7s3.fsf@yucca> <87zgwmlbxl.fsf@yucca> Date: Wed, 08 Jun 2022 14:46:23 -0400 In-Reply-To: <87zgwmlbxl.fsf@yucca> (Vagrant Cascadian's message of "Sat, 22 May 2021 14:02:14 -0700") Message-ID: <87r13zj8n4.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hi Vagrant, Vagrant Cascadian <vagrant@HIDDEN> writes: > On 2021-05-02, Vagrant Cascadian wrote: >> Unfortunately, guix doesn't currently support booting off of a separate >> /boot partition, since the kernel and initrd are in /gnu/store; your >> bootloader needs to be able to mount the partition that /gnu/store is >> located on. >> >> The workaround would be to manually copy all files mentioned in grub.cfg >> (kernel, initrd, possibly others) into a partition somewhere on boot >> media, and tweak the grub.cfg appropriately... >> >> >> There are several cases where this sort of thing would be desireable: >> >> * The above scenario; the system does not expose an NVMe drive from EFI >> or BIOS. >> >> * Using u-boot and you want root on lvm, raid, encryption, etc. which >> u-boot does not support > > * Using luks1 format for /boot and luks2 format for / (unless grub2 > learns how to read luks2 already/soon) On top of the above use cases, I'll add one I found recently, after upgrading my disk array to 2.5 TiB on my aging BIOS desktop: * Keep boot files under the maximum 2 TiB addressable sector on BIOS (non-UEFI) systems using > 2 TiB drives. The problem would manifest itself by this cryptic GRUB error: "error: attempt to read or write outside of disk `proc'" The solution was to have a separate *and* standalone boot partition. The separate part is easy; just create a new partition and mount it as /boot in your config file system definitions. The second "standalone" part is not taken care by Guix System yet; with the help of Tobias I devised the following script that copies the minimum (init RAM disks and kernel images) to /boot and strips the prefixes on these paths, if any (I use Btrfs subvolumes): --8<---------------cut here---------------start------------->8--- #!/usr/bin/env bash set -e # Copy kernel and initrd images to /boot images=$(grep -E '^ (linux|initrd) ' /boot/grub/grub.cfg \ | awk '{ print $2 }' | sed 's|.*/gnu|/gnu|g' | sort | uniq) for image in $images; do mkdir -p /boot$(dirname $image) if [ ! -e /boot$image ] || ! cmp -s $image /boot$image; then echo copying cp $image to /boot$image... > /dev/error cp $image /boot$image fi done # Adjust /boot/grub/grub.cfg. sed -E -e 's/.*search.*--set.*//' \ -e 's/^insmod luks.*//' \ -e 's/^cryptomount.*//' \ -e 's,^( (linux|initrd) )[^ ]*(/gnu/[^ ]* ?),\1\3,' \ -i.bak /boot/grub/grub.cfg --8<---------------cut here---------------end--------------->8--- It's on my TODO to address this properly in Guix when I'll have the bandwidth. I hope that helps, Thanks! Maxim
X-Loop: help-debbugs@HIDDEN Subject: bug#48172: support split /boot partition References: <871raovntj.fsf@yucca> In-Reply-To: <871raovntj.fsf@yucca> Resent-From: Distopico Vegan <distopico@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guix@HIDDEN Resent-Date: Sat, 03 Jun 2023 16:44:02 +0000 Resent-Message-ID: <handler.48172.B48172.168581059218947 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 48172 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48172 <at> debbugs.gnu.org Received: via spool by 48172-submit <at> debbugs.gnu.org id=B48172.168581059218947 (code B ref 48172); Sat, 03 Jun 2023 16:44:02 +0000 Received: (at 48172) by debbugs.gnu.org; 3 Jun 2023 16:43:12 +0000 Received: from localhost ([127.0.0.1]:44206 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1q5ULN-0004vP-SU for submit <at> debbugs.gnu.org; Sat, 03 Jun 2023 12:43:12 -0400 Received: from mx1.riseup.net ([198.252.153.129]:41562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <distopico@HIDDEN>) id 1q5SGf-0007Di-Ez for 48172 <at> debbugs.gnu.org; Sat, 03 Jun 2023 10:30:13 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4QYMhq0p93zDqCq for <48172 <at> debbugs.gnu.org>; Sat, 3 Jun 2023 14:30:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1685802603; bh=EsDcpJderLU8HN6L6diE0Kf/iwuW1dkohz0rkSYWZDI=; h=From:To:Subject:Date:From; b=QRC4W/GA/ujwy8lGPyRDab6AT6rvrSKUWb2XdXrOu2SeMN6Y5w47fQn4ySKSziWm0 aDe1HJ50EQWuve2Kp2BqgM/O5oNZHcXF9tCq5MhPXG181ZsCWu7OXuGwpogmApWsVN 0av7KjZRxP6n6NsQS/ctvGR54X5Do5MlC3kYHe0U= X-Riseup-User-ID: 0A3D349542D7C9C2C557F62724C962088623BFFFF81484C1D14B1FAF3C399688 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4QYMhp3wNfzFq1y for <48172 <at> debbugs.gnu.org>; Sat, 3 Jun 2023 14:30:02 +0000 (UTC) From: Distopico Vegan <distopico@HIDDEN> Date: Sat, 03 Jun 2023 09:25:55 -0500 Message-ID: <87zg5gr53s.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Sat, 03 Jun 2023 12:43:04 -0400 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Currently I have this similar use case, I have a PCI-E NVMe that is not detected by BIOS (KGPE-D16 motherboard) so my plan was had a partition for /boot in my SSD and the root system in the NVMe, so could be great have support to that user case that I think is pretty common in old board that doen's have NVMe and you want extend your system. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEEvYwofabWO6y953lVmAk6gHJUa/MFAmR7TmcVHGRpc3RvcGlj b0ByaXNldXAubmV0AAoJEJgJOoByVGvzo1AH/igTAaVZI+Mx9To0YJUGZodBfvLI Eb8Pdv+ukHX/eXdqt52I7IzdT8IA4Fhy6PL4pKEm0PcffIMRPOhJSiDPSJDJjv4k ypHaE3UCU/tCAQmzys5FvHRPEBpab5trg2EQReH+iy4PDng4mY+YRb0URTxfp8cU xV6/t9oGRgJDko2DlDwilU9Fng3OvSksEHCrcjtDV/uoG+tk4ZC7kpVlf5XL7XpP aMtsDd5rvYTFMyur/dlMruZawBF5pFjAZ70U4imXmMozsqZHPqWd5azv5rCQ3qKC LUqWQ9qG1f1ZyHIw8TyommRKxS/P6TN1VDR+ncF6YhdgymTHwMW6QaOWLdI= =DxlV -----END PGP SIGNATURE----- --=-=-=--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.