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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EC259138359 for ; Fri, 28 Aug 2020 20:18:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 798ABE0AA4; Fri, 28 Aug 2020 20:18:52 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3DFA6E0AA6 for ; Fri, 28 Aug 2020 20:18:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7021E340B66 for ; Fri, 28 Aug 2020 20:18:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 624A2353 for ; Fri, 28 Aug 2020 20:18:47 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1598643260.9257a804c47118d926b061120df69cf75756369d.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_initramfs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 9257a804c47118d926b061120df69cf75756369d X-VCS-Branch: master Date: Fri, 28 Aug 2020 20:18:47 +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: bbf2e3fd-2b99-4a6e-92df-e665485081da X-Archives-Hash: e5cd4c3c50a269ec7c3b9fa69d287942 commit: 9257a804c47118d926b061120df69cf75756369d Author: Thomas Deutschmann gentoo org> AuthorDate: Fri Aug 28 19:34:20 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Fri Aug 28 19:34:20 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9257a804 gen_initramfs.sh: append_base_layout(): Symlink '/etc/mtab' to '/proc/self/mounts' Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 5b86108..fcfa827 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -363,6 +363,9 @@ append_base_layout() { chmod 0755 "${TDIR}"/usr/sbin/gksosreport \ || gen_die "Failed to chmod of '${TDIR}/usr/sbin/gksosreport'!" + ln -s /proc/self/mounts "${TDIR}"/etc/mtab \ + || gen_die "Failed to symlink '/etc/mtab' to '/proc/self/mounts'!" + # Allow lsinitrd from dracut to process our initramfs echo "$(cat "${TDIR}/etc/build_id") ($(cat "${TDIR}/etc/build_date"))" > "${TDIR}"/lib/dracut/dracut-gk-version.info \ || gen_die "Failed to create '${TDIR}/lib/dracut/dracut-gk-version.info'!"