From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6DnrAXx72WLyzwAAbAwnHQ (envelope-from ) for ; Thu, 21 Jul 2022 18:14:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2C/7AXx72WLLuwAA9RJhRA (envelope-from ) for ; Thu, 21 Jul 2022 18:14:52 +0200 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 B780B3E7F8 for ; Thu, 21 Jul 2022 18:14:51 +0200 (CEST) Received: from localhost ([::1]:55144 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEYp8-0002hs-TR for larch@yhetil.org; Thu, 21 Jul 2022 12:14:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEYcl-0006EI-EC for bug-guix@gnu.org; Thu, 21 Jul 2022 12:02:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEYck-0007uH-9k for bug-guix@gnu.org; Thu, 21 Jul 2022 12:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEYck-0000zX-3V for bug-guix@gnu.org; Thu, 21 Jul 2022 12:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#56582: Installer does not detect or allow detection of other bootable partitions Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 21 Jul 2022 16:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56582 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Peter , Julien Lepiller Cc: 56582@debbugs.gnu.org Received: via spool by 56582-submit@debbugs.gnu.org id=B56582.16584193163795 (code B ref 56582); Thu, 21 Jul 2022 16:02:02 +0000 Received: (at 56582) by debbugs.gnu.org; 21 Jul 2022 16:01:56 +0000 Received: from localhost ([127.0.0.1]:38752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEYce-0000z9-4T for submit@debbugs.gnu.org; Thu, 21 Jul 2022 12:01:56 -0400 Received: from jpoiret.xyz ([206.189.101.64]:60300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEYcb-0000yx-2c for 56582@debbugs.gnu.org; Thu, 21 Jul 2022 12:01:55 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 02A76184F6B; Thu, 21 Jul 2022 16:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1658419311; h=from:from: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; bh=a039dNmOMRpFJ/ZXBHWz3s9JVQMHIYq7G8Vj2M8meyc=; b=ZqFQalL6u8A1Lckahy84AAM1DU+AFshWQmRrSesjbGCFaTLRZvR5dltoyvTVUKhFfzG42t U8Mz0OwczUJdSz7OxJWvaJVoAYKf6LwBVd26WgigCj+EQPSrdk39lwMVMMAkQrWomlIQ1b k7LWhY2hubV+iO6u1L5GmOwXwBPVVwi7qHRaKirr+f38zXjg1+8H0bQDkrfugBzvuuj3H3 TSJGeMgkfvY6waP/wZLJWcAw3IGStN9R4a7ZpAYb+uwswsvXd5ZtZr5nFUInJKghh9lxId FP9FR6JAffLHUizTV8HQWVOcHc0uyI1sE80Tf3gUg59KLH5os5cVay0VuuGaWA== In-Reply-To: References: <93F87F3F-F349-4152-829D-328F4FB078D4@lepiller.eu> <877d4dz8ce.fsf@jpoiret.xyz> Date: Thu, 21 Jul 2022 18:01:50 +0200 Message-ID: <874jzazc7l.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: text/plain X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: Josselin Poiret From: Josselin Poiret via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658420091; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=a039dNmOMRpFJ/ZXBHWz3s9JVQMHIYq7G8Vj2M8meyc=; b=B74Eyz0zQcWC2Kl9yYZhPegROWRN+4XKKlQ9cyEGxLW6Rq9Oos6esAOomDb1NNyiG7ga6Y TC6I6jwOipRgejv+9F/ccvf+J/dXtFoWTfbHg8Uw7R32X/m8Ichh4cdi7ghLnN/dhsbQ07 3eWeRH1IRv2AcWl1uOCKy0+FC0hGB3WT1p8xLJDRoQxOSgVqIOvnYJgYDRX8YxhoQA2Sbg H2RZjDwPWULn/WyVOO9LF/1iyIkfy/TUfqrcTfnYzN8msc12voDNu8yy60A9WqJdQrl7yI t26aGH6H7QZ7lSmVEGHVeP9J8gyDrxWNWRsHqkFHS4QsNLrdW3uFL0+sRG2kAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658420091; a=rsa-sha256; cv=none; b=NEjMLXZp3rI46DPDhgKMY6q4P/7YFARBhE0ZUeAAH1N4XhpH1OwR2p6wEJVl+fjpMPEVUf VAiyauJsVkYcOKNgPVDlFzRR4R2LQ/gGGmP151I3GfXEwoerX4wdQbct6z+M4TKmR4oxfz 63867O5PjZoNyqFruPyUP3oFHiziG9Tk77Oz4A0Fam5+kjWyYIqWsPT7ByjXvUbXwr+paF r07NjvTghkX6qSEJ8F+EcWBPMn+gAirj1d3aGbZImD52cTERFc7hXfh4lygpp2Is0njXPM Wiuj+Oivo7R1oc+QGXQrdPZfKnOUvx1TRAX+7Zn9tmqy6LusKGRUcUcJRgXZbA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=ZqFQalL6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b=ZqFQalL6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B780B3E7F8 X-Spam-Score: -3.44 X-Migadu-Scanner: scn1.migadu.com X-TUID: V5mvCLhNpHFU Hi Peter, Peter writes: > To expand on this, Guix installs GRUB. This is undeniable, and this is > where the problem begins.. over many years users are accustomed to GRUB > working in a certain way with specific tools.. when they encounter a grub > installation without grub-mkconfig, etc. they are at a loss, because it's a > binary they expected to find and it's just not present. I think an argument > could be made here that this behaviour breaks user space because it's > established software, but changed to function differently as opposed to > being something entirely new. It's like wearing your shoes on the opposite > foot. You can do it, but it feels wrong. Those tools are unfortunately stateful, like grub-mkconfig using osprober, so wouldn't be a good fit for Guix. You could also argue that the majority of people using GRUB don't even know how to use the grub tools, or what they actually do. I personally think that our GRUB interface is elegant, while a bit incomplete. > The way Debian and other distros manage Grub is via mkconfig, and the boot > menu presented is very similar to Guix's, the only difference is that > there's an extra row entry in the grub menu for the Windows bootloader to > be launched. If we had a way to add menu entries that chainload another bootloader, then that would result in the same exact menu. It shouldn't even be too hard to add. > Personally, I dislike Grub because I feel it complicates things. I would > love to use only UEFI and use only the bios boot menu to switch, but for > whatever reason in a single internal drive system, this isn't easily done. > Giving an example, awhile back, I tried installing a distro to an external > usb drive.. it worked.. but the problem is that it installed grub to the > internal drive.. and if you removed the usb drive from the pc, things would > break because now a device it was expecting to see wasn't there. A > workaround suggested was to disconnect the internal drive, do the setup, > this way Grub would be on the external drive, then reconnect the internal > drive and then I guess use the bios uefi menu to switch between, a lot of > bother for a tightly sealed unit. You can (and should) specify which EFI partition you'd like to install GRUB to. You'd simply need to create a EFI partition on the removable media, and add the --removable option as well so that GRUB is installed in the default boot location (/EFI/BOOT/bootx64.efi) so that booting from the drive actually boots that bootloader. If you want to get rid of GRUB, you can also compile Linux with the EFI stub, so that it can be started as a EFI application directly, and then add a EFI boot entry for it. > The way MS's bootloader works is nice because one of the menu options it > has is to pick a physical device so you can actually boot from a valid > bootable USB flash drive device and it launches that device directly. Your UEFI boot menu should already do that, no need for that in a bootloader IMO. > Maybe the solution is just to create an EFI partition at the front of all > drives including external as Apple does and then it doesn't matter what > bootloader you use or do not use, because you could always just use the > UEFI menu to point to a device. Not using a bootloader would reduce > complexity of maintenance.. if MS's bootloader is there, people can use it > if they want to point to the device, and if it is not there, then they can > use the uefi bios menu. In theory. Without the EFI stub, Linux needs a bootloader to load, and the windows bootloader surely won't support booting Linux. Best, -- Josselin Poiret