logo

make-initrd

Unnamed repository; edit this file 'description' to name the repository.
commit: a8247cc1fb16e7378cce0be287da555d9d189f08
parent: 1db5b33acc3421fbd9c79a49f54515fbca626624
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 22 Mar 2019 10:20:21 +0100

make-initrd.bash: Make sure ELF file go into bin/ and not overwrite it

Diffstat:

Mmake-initrd.bash4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/make-initrd.bash b/make-initrd.bash @@ -52,8 +52,8 @@ mknod -m 640 dev/tty1 c 4 1 [[ $(echo "$kv" | cut -d'.' -f2) -ge 1 ]] && mknod -m 600 /dev/loop-control c 10 237 -for i in $elves; do - cp $(which $i) bin +for elf in $elves; do + cp $(which $elf) bin/ done cp "${WORKDIR}/init" . && chmod 755 init || exit