From 4b5878806376acc875ae11fb4e50ac00b6210048 Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Tue, 7 Mar 2023 10:05:27 -0500 Subject: [PATCH] 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 --- initrd/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initrd/init b/initrd/init index f4cf78a6..06bbccf2 100755 --- a/initrd/init +++ b/initrd/init @@ -118,7 +118,7 @@ if [ "$boot_option" = "r" ]; then if [ "$CONFIG_TPM" = "y" ]; then tpmr extend -ix 4 -ic recovery fi - exec /bin/bash + exec /bin/sh exit fi @@ -177,4 +177,4 @@ fi if [ "$CONFIG_TPM" = "y" ]; then tpmr extend -ix 4 -ic recovery fi -exec /bin/bash +exec /bin/sh