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 2C1BA15808B for ; Fri, 16 Feb 2024 19:39:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 248EBE29FA; Fri, 16 Feb 2024 19:39:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 036EBE29FA for ; Fri, 16 Feb 2024 19:39:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A33933FE60 for ; Fri, 16 Feb 2024 19:39:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DBF451239 for ; Fri, 16 Feb 2024 19:39:44 +0000 (UTC) From: "Ben Kohler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ben Kohler" Message-ID: <1708112308.bd2f2e1ea079d1721d8fcf684c966d556b763d3e.bkohler@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.scripts X-VCS-Directories: defaults/ X-VCS-Committer: bkohler X-VCS-Committer-Name: Ben Kohler X-VCS-Revision: bd2f2e1ea079d1721d8fcf684c966d556b763d3e X-VCS-Branch: master Date: Fri, 16 Feb 2024 19:39:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 04f15a30-2c7b-438e-bc26-33ad3e8c9c2a X-Archives-Hash: 93b707576e27da9cabfd4f8d464dc6c7 commit: bd2f2e1ea079d1721d8fcf684c966d556b763d3e Author: Ben Kohler gentoo org> AuthorDate: Fri Feb 16 19:38:28 2024 +0000 Commit: Ben Kohler gentoo org> CommitDate: Fri Feb 16 19:38:28 2024 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=bd2f2e1e initrd.scripts: create dir layout for overlayfs as well These dirs like /mnt/gentoo are normally created during boot but overlayfs usage bypasses that. Let's create them for overlayfs users as well. Signed-off-by: Ben Kohler gentoo.org> defaults/initrd.scripts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 01bfe07..506f8c6 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -855,6 +855,13 @@ setup_overlayfs() { run mount --bind "${i}" "${NEW_ROOT}${i}" done + # Setup the filesystem nodes and directories + # Copied from non-overlayfs logic earlier in this script + for i in ${CDROOT_PATH} /mnt/header /mnt/livecd /mnt/key /mnt/gentoo /tmp /tmp/.initrd /dev /proc /run /sys; do + run mkdir -p "${NEW_ROOT}${i}" + run chmod 755 "${NEW_ROOT}${i}" + done + # Did we populate the overlayfs modules path locations variable? if [ -n "${mods}" ] then