logo

bootstrap-initrd

Linux initrd generator to bootstrap a POSIX-ish system from a reasonably small binary seed git clone https://hacktivis.me/git/make-initrd.git
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