summaryrefslogtreecommitdiff
path: root/sys-boot/myinitramfs
diff options
context:
space:
mode:
Diffstat (limited to 'sys-boot/myinitramfs')
-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"