Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Fri, 28 Aug 2020 20:18:55
Message-Id: 1598643260.9257a804c47118d926b061120df69cf75756369d.whissi@gentoo
1 commit: 9257a804c47118d926b061120df69cf75756369d
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 28 19:34:20 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 28 19:34:20 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=9257a804
7
8 gen_initramfs.sh: append_base_layout(): Symlink '/etc/mtab' to '/proc/self/mounts'
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 gen_initramfs.sh | 3 +++
13 1 file changed, 3 insertions(+)
14
15 diff --git a/gen_initramfs.sh b/gen_initramfs.sh
16 index 5b86108..fcfa827 100755
17 --- a/gen_initramfs.sh
18 +++ b/gen_initramfs.sh
19 @@ -363,6 +363,9 @@ append_base_layout() {
20 chmod 0755 "${TDIR}"/usr/sbin/gksosreport \
21 || gen_die "Failed to chmod of '${TDIR}/usr/sbin/gksosreport'!"
22
23 + ln -s /proc/self/mounts "${TDIR}"/etc/mtab \
24 + || gen_die "Failed to symlink '/etc/mtab' to '/proc/self/mounts'!"
25 +
26 # Allow lsinitrd from dracut to process our initramfs
27 echo "$(cat "${TDIR}/etc/build_id") ($(cat "${TDIR}/etc/build_date"))" > "${TDIR}"/lib/dracut/dracut-gk-version.info \
28 || gen_die "Failed to create '${TDIR}/lib/dracut/dracut-gk-version.info'!"