From b798d41c3ab3d824e49904183e50522f38cd9d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 2 Sep 2021 16:09:01 +0200 Subject: sys-boot/myinitramfs: another try to fix --- sys-boot/myinitramfs/files/baselist | 3 +-- sys-boot/myinitramfs/files/gen.sh | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'sys-boot/myinitramfs/files') 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" -- cgit v1.2.3