aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-08-28 21:34:20 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-08-28 21:34:20 +0200
commit9257a804c47118d926b061120df69cf75756369d (patch)
treed888bd22ae5b5c881abd7e178424abf63daf6992
parentgen_initramfs.sh: append_base_layout(): Add /etc/initrd-release (diff)
downloadgenkernel-9257a804c47118d926b061120df69cf75756369d.tar.gz
genkernel-9257a804c47118d926b061120df69cf75756369d.tar.bz2
genkernel-9257a804c47118d926b061120df69cf75756369d.zip
gen_initramfs.sh: append_base_layout(): Symlink '/etc/mtab' to '/proc/self/mounts'
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgen_initramfs.sh3
1 files changed, 3 insertions, 0 deletions
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'!"