initrd/bin/inject_firmware.sh: Fix warning command

The function is 'warn', not 'WARN'.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-08-22 09:42:54 -04:00
parent cb518e4f1b
commit cb61739139
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -51,7 +51,7 @@ done
# awk will happily pass through a binary file, so look for the match we want
# before modifying init to ensure it's a shell script and not an ELF, etc.
if ! grep -E -q '^exec run-init .*\$\{rootmnt\}' "$INITRD_ROOT/init"; then
WARN "Can't apply firmware blob jail, unknown init script"
warn "Can't apply firmware blob jail, unknown init script"
exit 0
fi