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 <jonathon.hall@puri.sm>
This commit is contained in:
Jonathon Hall 2023-02-28 15:35:44 -05:00
parent 7ab5e5c3e3
commit c98ae5b53d
No known key found for this signature in database
GPG Key ID: 1E9C3CA91AE25114
2 changed files with 3 additions and 3 deletions

View File

@ -56,9 +56,9 @@ recovery() {
sleep 1 sleep 1
if [ -x /bin/setsid ]; then if [ -x /bin/setsid ]; then
/bin/setsid -c /bin/bash /bin/setsid -c /bin/sh
else else
/bin/bash /bin/sh
fi fi
done done
} }

View File

@ -1 +1 @@
root:x:0:0:root:/:/bin/bash root:x:0:0:root:/:/bin/sh