From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WG2GGN0Wj2DHFAAAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 23:17:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IFgtFN0Wj2CzZQAA1q6Kng (envelope-from ) for ; Sun, 02 May 2021 21:17:17 +0000 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 D7D7FAFB5 for ; Sun, 2 May 2021 23:17:16 +0200 (CEST) Received: from localhost ([::1]:39578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldJSl-000810-Bs for larch@yhetil.org; Sun, 02 May 2021 17:17:15 -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 ) 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 ) 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@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 826B11AB0A; Sun, 2 May 2021 14:16:29 -0700 (PDT) From: Vagrant Cascadian To: Joshua Branson , Vladilen Kozin Subject: support split /boot partition In-Reply-To: <875z038851.fsf@dismail.de> References: <875z038851.fsf@dismail.de> 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@debian.org; 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-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619990237; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=TzjnjXxBAaleSTh9CCfC1cY9+C217xnbQPIJtlCs6KY=; b=jE5pMa+lcKTN8Pz+WiR37S2o4YBqKr3zP20aTFFL4P+SiDvT+vcVl08f4SLnH/JRsAThFj eFKTY9y9Fq7Ja7N9UGDW34pNhK6/bzl9qZxp1QnSkUad2mbJJExruzsu/hadngwIGLi93z OlCglt92ztnOjXB2wddnwHk9rBmP4MZuquh1pwFr/61rfXXkIUm7U2sUDIKXfoBqVd/Aa0 J/GQnzn7o1tzdyhrAwECkpzO+sXJl/EPcQzMAwnKGaKX3EsJmJ0rsqu23zSLo0xu8QEB0W G/lDrDTcSeq4JjtTP8x4LHNpzGQiFWXpOmijvckqEDBFKKjJZb+7p3yA0dNEMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619990237; a=rsa-sha256; cv=none; b=edK8aTWbiV2Y25uEwP5pMjdX63wl4IZjtE+F1Qkaaja/m4lKXKlqYdIcLpEek4oNSChWI7 1sEHDWn/sAAHQHEnwGS2RSLW/JQLJ53+qZo33b62BksmMXrYctcmx+dq7Z/CGL6bcc8tZv TA7PQuYL+pifRkp8noFAvn09pn2wDt+hlB9Z2mcJA18GOyt1KU2Tma4zuOYV5NPvTQHXIJ /nOjY4Xu/m3sFw/cFGRQS83rmKIQovvHyj244t7fHShHASJ73W/ocu7fauOtEIRSmgEUdD 9eO8xUJRQamGozoWr5K+DD0ovUnw3/ieD03RqOjr4it9BehLmYi/5kKxWchnkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -4.06 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: D7D7FAFB5 X-Spam-Score: -4.06 X-Migadu-Scanner: scn0.migadu.com X-TUID: t4Oxye0iXOxS --=-=-= Content-Type: text/plain On 2021-04-30, Joshua Branson wrote: > Vladilen Kozin 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----- --=-=-=--