logo

make-initrd

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/make-initrd.git
commit: 0006b04f9b2f4be2131b6a0d63dd3f16374bdb5d
parent 72552b46f8b3e485f1eb54e2f8ccb35714f1730c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 31 Mar 2022 18:36:23 +0200

make-initrd: fix issues found via shellcheck

Diffstat:

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

diff --git a/make-initrd.sh b/make-initrd.sh @@ -23,7 +23,7 @@ if test -d "/lib/modules" then cp -pr "/lib/modules" lib || die "Failed copying kernel modules" else - echo "[Warning] “/lib/modules” doesn’t exist" + echo "[Warning] '/lib/modules' doesn’t exist" fi mknod -m 600 dev/console c 5 1 @@ -40,7 +40,8 @@ for elf in $elves; do cp "$origin" bin/ done -cp "${WORKDIR}/init" . && chmod 755 init || exit +cp "${WORKDIR}/init" . || die "copying init" +chmod 755 init || die "init chmod" ln bin/mksh bin/sh bin/busybox --install usr/bin