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 8AADC158095 for ; Fri, 16 Sep 2022 15:16:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6115CE0896; Fri, 16 Sep 2022 15:16:20 +0000 (UTC) Received: from smarthost01c.sbp.mail.zen.net.uk (smarthost01c.sbp.mail.zen.net.uk [212.23.1.5]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 26003E087A for ; Fri, 16 Sep 2022 15:16:19 +0000 (UTC) Received: from [82.69.80.10] (helo=wstn.localnet) by smarthost01c.sbp.mail.zen.net.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZD4k-0002F4-7x for gentoo-user@lists.gentoo.org; Fri, 16 Sep 2022 15:16:18 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Separate /usr partition Date: Fri, 16 Sep 2022 16:16:17 +0100 Message-ID: <4745830.GXAFRqVoOG@wstn> In-Reply-To: <12071369.O9o76ZdvQC@wstn> References: <5874509.lOV4Wx5bFT@wstn> <20220914230945.489ac907@digimed.co.uk> <12071369.O9o76ZdvQC@wstn> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-smarthost01c-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: 5e17823c-602e-48ee-a5c6-db2ad9857c66 X-Archives-Hash: 68d707c69d797ae1db818784fe6f91f8 On Thursday, 15 September 2022 09:57:44 BST I wrote: > On Wednesday, 14 September 2022 23:09:59 BST Neil Bothwick wrote: > > On Wed, 14 Sep 2022 16:50:45 +0100, Peter Humphrey wrote: > > > I'm thinking of separating /usr onto its own partition so that I can > > > have it mounted read-only except while updating it. I'd prefer not to > > > have to make an init thingy, not having needed one up to now. Besides, > > > some machines have things like early-ucode or amd-uc. > > > > Most of this has already been answered, except for your final point. You > > can load more than one initrd at boot, so you can still apply microcode > > updates. For example, with systemd-boot > > > > title Desktop > > version 5.15.59-gentoo > > linux /vmlinuz-5.15.59-gentoo > > options root=LABEL=blah blah > > initrd /amd-uc.img > > initrd /initramfs-5.15.59-gentoo.img > > > > I use dracut to create the initrd, which is so straighforward even Dale > > can't break it ;-) > : > :) > > That seems to be the way to go then - even dinosaurs die out in the end. > Perhaps Dale will show us the command he referred to. Well, it's taken a few hours, but I have it working. Just a few wrinkles to clear up: 1. dracut: 90crypt: Could not find any command of '/lib/systemd/systemd- cryptsetup cryptsetup'! ...and similar for bluetooth. What do I have to include in /etc/dracut.conf.d/mine.conf to silence these? I already omit the relevant modules: $ grep -e crypt -e blue /etc/dracut.conf.d/mine.conf omit_dracutmodules+=" bluetoothd " omit_dracutmodules+=" systemd-cryptsetup " omit_dracutmodules+=" cryptsetup " 2. dracut: No KEYMAP configured. $ grep i18n /etc/dracut.conf.d/mine.conf i18n_vars="/etc/conf.d/keymaps:KEYMAP /etc/conf.d/keymaps:WINDOWKEYS / etc/conf.d/consolefont:FONT" Notice that only KEYMAP is complained about. The FONT in consolefont points to /usr as well as KEYMAP. -- Regards, Peter.