From c98ae5b53dc26278fe1c7b039784a2108480ee77 Mon Sep 17 00:00:00 2001 From: Jonathon Hall Date: Tue, 28 Feb 2023 15:35:44 -0500 Subject: [PATCH] recovery, passwd: Use /bin/sh for interactive shells Use /bin/sh (ash in busybox builds) for interactive shells, not bash. Preparation for trimming interactive features from bash to reduce size. Signed-off-by: Jonathon Hall --- initrd/etc/functions | 4 ++-- initrd/etc/passwd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/initrd/etc/functions b/initrd/etc/functions index e2d3dfde..926b651c 100755 --- a/initrd/etc/functions +++ b/initrd/etc/functions @@ -56,9 +56,9 @@ recovery() { sleep 1 if [ -x /bin/setsid ]; then - /bin/setsid -c /bin/bash + /bin/setsid -c /bin/sh else - /bin/bash + /bin/sh fi done } diff --git a/initrd/etc/passwd b/initrd/etc/passwd index 9ada0152..51836385 100644 --- a/initrd/etc/passwd +++ b/initrd/etc/passwd @@ -1 +1 @@ -root:x:0:0:root:/:/bin/bash +root:x:0:0:root:/:/bin/sh