summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-boot/myinitramfs/files/baselist2
-rwxr-xr-xsys-boot/myinitramfs/files/gen.sh4
2 files changed, 5 insertions, 1 deletions
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"