diff options
author | Karel Kočí <cynerd@email.cz> | 2021-09-04 15:57:12 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2021-09-04 15:57:12 +0200 |
commit | 0dedc589a05f16794e8a1228178c58aa22699de7 (patch) | |
tree | 89f0e31d712cd75d7f8261cfe6b7e81105c9fa8c /sys-boot/myinitramfs | |
parent | b798d41c3ab3d824e49904183e50522f38cd9d99 (diff) | |
download | gentoo-personal-overlay-0dedc589a05f16794e8a1228178c58aa22699de7.tar.gz gentoo-personal-overlay-0dedc589a05f16794e8a1228178c58aa22699de7.tar.bz2 gentoo-personal-overlay-0dedc589a05f16794e8a1228178c58aa22699de7.zip |
sys-boot/myinitramfs: add cryptsetup lock directory
The cryptsetup requires this directory otherwise it fails with pretty
cryptic error about missing libgcc_s.so.
Diffstat (limited to 'sys-boot/myinitramfs')
-rw-r--r-- | sys-boot/myinitramfs/files/baselist | 2 | ||||
-rwxr-xr-x | sys-boot/myinitramfs/files/gen.sh | 4 |
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" |