summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-09-02 16:09:01 +0200
committerKarel Kočí <cynerd@email.cz>2021-09-02 16:09:01 +0200
commitb798d41c3ab3d824e49904183e50522f38cd9d99 (patch)
treebccb879ec4cf90b150b46a9ec1db179859c5a18c
parent4bc26a55e65275522d0b9723901d9d198b5b6ce9 (diff)
downloadgentoo-personal-overlay-b798d41c3ab3d824e49904183e50522f38cd9d99.tar.gz
gentoo-personal-overlay-b798d41c3ab3d824e49904183e50522f38cd9d99.tar.bz2
gentoo-personal-overlay-b798d41c3ab3d824e49904183e50522f38cd9d99.zip
sys-boot/myinitramfs: another try to fix
-rw-r--r--sys-boot/myinitramfs/files/baselist3
-rwxr-xr-xsys-boot/myinitramfs/files/gen.sh5
2 files changed, 6 insertions, 2 deletions
diff --git a/sys-boot/myinitramfs/files/baselist b/sys-boot/myinitramfs/files/baselist
index 692a560..e1ad584 100644
--- a/sys-boot/myinitramfs/files/baselist
+++ b/sys-boot/myinitramfs/files/baselist
@@ -16,9 +16,8 @@ dir /usr/lib64 755 0 0
dir /mnt 755 0 0
dir /mnt/root 755 0 0
-# Ld and gcc library
+# Ld
file /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 755 0 0
-file /usr/lib64/libgcc_s.so.1 /usr/lib64/libgcc_s.so.1 0 0
# Busybox
file /bin/busybox /bin/busybox 755 0 0
diff --git a/sys-boot/myinitramfs/files/gen.sh b/sys-boot/myinitramfs/files/gen.sh
index e15edcd..3bc5b37 100755
--- a/sys-boot/myinitramfs/files/gen.sh
+++ b/sys-boot/myinitramfs/files/gen.sh
@@ -22,6 +22,11 @@ cp baselist "$LIST"
# Init script
echo "file /init ./init.enc 755 0 0" >> "$LIST"
echo >> "$LIST"
+# GCC library
+find /usr/lib/gcc -name libgcc\*\.so | while read -r lib; do
+ echo "file $lib $lib 755 0 0" >> "$LIST"
+done
+echo >> "$LIST"
# Executables required when USE_DMI
if [ -n "$USE_DMI" ]; then
echo "file /sbin/initramfs_password ./initramfs_password 755 0 0" >> "$LIST"