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 69A0B138359 for ; Fri, 28 Aug 2020 20:18:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82A5BE0AAD; 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 4F684E0AA6 for ; Fri, 28 Aug 2020 20:18:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 64880340B57 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 4FA4E352 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: <1598643213.9e797bba6f42add85b347ef2711fbb939bdebf09.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: 9e797bba6f42add85b347ef2711fbb939bdebf09 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: ae31bd87-acec-42de-8eb8-cb8eced48895 X-Archives-Hash: 2095a7ec705419434e19ca7c9f8120a8 commit: 9e797bba6f42add85b347ef2711fbb939bdebf09 Author: Thomas Deutschmann gentoo org> AuthorDate: Fri Aug 28 19:33:33 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Fri Aug 28 19:33:33 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9e797bba gen_initramfs.sh: append_base_layout(): Add /etc/initrd-release Signed-off-by: Thomas Deutschmann gentoo.org> gen_initramfs.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 315bb22..5b86108 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -345,9 +345,18 @@ append_base_layout() { date -u '+%Y-%m-%d %H:%M:%S UTC' > "${TDIR}"/etc/build_date \ || gen_die "Failed to create '${TDIR}/etc/build_date'!" - echo "Genkernel $GK_V" > "${TDIR}"/etc/build_id \ + echo "Genkernel ${GK_V}" > "${TDIR}"/etc/build_id \ || gen_die "Failed to create '${TDIR}/etc/build_id'!" + cat >"${TDIR}"/etc/initrd-release <<-EOF + NAME="genkernel" + VERSION="genkernel-${GK_V}" + ID=genkernel + VERSION_ID=${GK_V} + PRETTY_NAME="Gentoo/Linux genkernel-${GK_V} (Initramfs)" + ANSI_COLOR="0;34" + EOF + cp -a "${GK_SHARE}"/defaults/gksosreport.sh "${TDIR}"/usr/sbin/gksosreport \ || gen_die "Failed to copy '${GK_SHARE}/defaults/gksosreport.sh' to '${TDIR}/usr/sbin/gksosreport'"