From 0dedc589a05f16794e8a1228178c58aa22699de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 4 Sep 2021 15:57:12 +0200 Subject: sys-boot/myinitramfs: add cryptsetup lock directory The cryptsetup requires this directory otherwise it fails with pretty cryptic error about missing libgcc_s.so. --- sys-boot/myinitramfs/files/baselist | 2 ++ sys-boot/myinitramfs/files/gen.sh | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sys-boot/myinitramfs') diff --git a/sys-boot/myinitramfs/files/baselist b/sys-boot/myinitramfs/files/baselist index e1ad584..e176739 100644 --- a/sys-boot/myinitramfs/files/baselist +++ b/sys-boot/myinitramfs/files/baselist @@ -15,6 +15,8 @@ dir /usr/sbin 755 0 0 dir /usr/lib64 755 0 0 dir /mnt 755 0 0 dir /mnt/root 755 0 0 +dir /run/lock 755 0 0 +dir /run/lock/cryptsetup 755 0 0 # Ld file /lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 755 0 0 diff --git a/sys-boot/myinitramfs/files/gen.sh b/sys-boot/myinitramfs/files/gen.sh index 3bc5b37..697968b 100755 --- a/sys-boot/myinitramfs/files/gen.sh +++ b/sys-boot/myinitramfs/files/gen.sh @@ -23,7 +23,9 @@ cp baselist "$LIST" 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 "dir /usr/lib 755 0 0" >> "$LIST" +echo "dir /usr/lib/gcc 755 0 0" >> "$LIST" +find /usr/lib/gcc -type f -name libgcc\*\.so\* | while read -r lib; do echo "file $lib $lib 755 0 0" >> "$LIST" done echo >> "$LIST" -- cgit v1.2.3