init: Execute /bin/sh for interactive shell, not /bin/bash

bash will not be the default interactive shell since readline support
increases the binary size significantly.  Use /bin/sh (busybox ash) for
that.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-03-07 10:05:27 -05:00
parent c2a4d84dfd
commit 4b58788063
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114

View File

@ -118,7 +118,7 @@ if [ "$boot_option" = "r" ]; then
if [ "$CONFIG_TPM" = "y" ]; then if [ "$CONFIG_TPM" = "y" ]; then
tpmr extend -ix 4 -ic recovery tpmr extend -ix 4 -ic recovery
fi fi
exec /bin/bash exec /bin/sh
exit exit
fi fi
@ -177,4 +177,4 @@ fi
if [ "$CONFIG_TPM" = "y" ]; then if [ "$CONFIG_TPM" = "y" ]; then
tpmr extend -ix 4 -ic recovery tpmr extend -ix 4 -ic recovery
fi fi
exec /bin/bash exec /bin/sh