aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-08-28 21:33:33 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-08-28 21:33:33 +0200
commit9e797bba6f42add85b347ef2711fbb939bdebf09 (patch)
tree5736889d89397e4bcf4a2d22e1cb52b5e1600896
parentarch/mips/config.sh: Update outdated config (diff)
downloadgenkernel-9e797bba6f42add85b347ef2711fbb939bdebf09.tar.gz
genkernel-9e797bba6f42add85b347ef2711fbb939bdebf09.tar.bz2
genkernel-9e797bba6f42add85b347ef2711fbb939bdebf09.zip
gen_initramfs.sh: append_base_layout(): Add /etc/initrd-release
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_initramfs.sh11
1 files changed, 10 insertions, 1 deletions
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'"