diff options
author | Karel Kočí <karel.koci@nic.cz> | 2019-10-23 11:39:36 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2019-10-23 11:39:36 +0200 |
commit | eb94c731605c3bf2064e75fb7b9499c4618516a9 (patch) | |
tree | a077be871e44016645631c4c4691a56464ea20ea /sys-boot/myinitramfs/files/gen.sh | |
parent | 239024d73497ad30d8cf468678bc71cd41a8218c (diff) | |
download | gentoo-personal-overlay-eb94c731605c3bf2064e75fb7b9499c4618516a9.tar.gz gentoo-personal-overlay-eb94c731605c3bf2064e75fb7b9499c4618516a9.tar.bz2 gentoo-personal-overlay-eb94c731605c3bf2064e75fb7b9499c4618516a9.zip |
x11-boot/myinitramfs: drop root and wait for UUID drive
Diffstat (limited to 'sys-boot/myinitramfs/files/gen.sh')
-rwxr-xr-x | sys-boot/myinitramfs/files/gen.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-boot/myinitramfs/files/gen.sh b/sys-boot/myinitramfs/files/gen.sh index b633731..916ba84 100755 --- a/sys-boot/myinitramfs/files/gen.sh +++ b/sys-boot/myinitramfs/files/gen.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/ash set -e OUT="$(readlink -f "$1")" @@ -14,11 +14,11 @@ cp baselist "$LIST" echo "file /init ./init.enc 755 0 0" >> "$LIST" echo >> "$LIST" # Executables -while read EXE; do +while read -r EXE; do P="$(which "$EXE")" echo "# $EXE" >> "$LIST" echo "file $P $P 755 0 0" >> "$LIST" - ldd "$P" | awk '{ print $3 }' | sed -n '/^[^ ]\+$/p' | while read LIB; do + ldd "$P" | awk '{ print $3 }' | sed -n '/^[^ ]\+$/p' | while read -r LIB; do echo "file $LIB $LIB 755 0 0" >> "$LIST" done done <exelist |