From: Ralph Ronnquist Date: Tue, 29 Oct 2024 23:25:41 +0000 (+1100) Subject: allow for arch-related init script X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;p=rrq%2Fbespoke-installer.git allow for arch-related init script --- diff --git a/build-installer.sh b/build-installer.sh index 68e117d..d4b8201 100755 --- a/build-installer.sh +++ b/build-installer.sh @@ -161,7 +161,9 @@ EOF # script is what the kernel executes at boot time. There is also an # /sbin/init script that belongs to the installer software which # however implements some other assumptions about the boot-up. -cp initrd-init $INITRD/init +INIT=initrd-init-$ARCH +[ -r "$INIT" ] || INIT=initrd-init +[ -r $INITRD/init ] || cp $INIT $INITRD/init ###################################################################### # Set up package pool media. This will populate $MEDIA/pool/* with deb