From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6663B158089 for ; Thu, 21 Sep 2023 22:17:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7273A2BC0C8; Thu, 21 Sep 2023 22:17:52 +0000 (UTC) Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 353932BC0B8 for ; Thu, 21 Sep 2023 22:17:52 +0000 (UTC) Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1qjRzb-0000vn-4f for gentoo-user@lists.gentoo.org; Fri, 22 Sep 2023 00:17:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Grant Edwards Subject: [gentoo-user] Re: How to move ext4 partition Date: Thu, 21 Sep 2023 22:17:46 -0000 (UTC) Message-ID: References: <20230920221647.5e3f00e7@digimed.co.uk> <3f0956e3-6605-4771-8472-a8c7d01eef35@users.sourceforge.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit User-Agent: slrn/1.0.3 (Linux) X-Archives-Salt: 8711199a-8774-410a-b3ce-6c107c199877 X-Archives-Hash: 329c4585ddca51088ba6154bc8b22a54 On 2023-09-21, Jack wrote: > >> [...] Of course I've discovered for the Nth time in the past 10-15 >> years, that for the root= command line argument, the kernel doesn't >> grok LABEL or UUID values -- it only understands device names and >> PARTUUID. > > while my Gentoo grub.cfg has root=PARTUUID=, my Artix Linux install > (using openrc) has root=UUID=.  I wasn't aware they had mucked with > grub (2.12-rc1) nor do I know if it's a recent change in grub. AFAIK, it's not grub (grub does know how to handle LABEL and UUID when setting grub's root). For the kernel, it's something in the initrd's 'init' executable that parses the root=UUID= or root=LABEL=, searches the available filesystems to find a match, then mounts the matching filesystem and does a chroot to it (or someting like that). If you don't have an initrd, then the kernel itself has to handle the root= and that code only knows about device names and partition UUIDs. It doesn't know anything about filesystems (which doesn't make much sense, since the next step is to mount the specified partition, and it obviously knows about filesystems at that point). At least that's what I've read...