mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 21:17:55 +00:00
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:
parent
7ab5e5c3e3
commit
c98ae5b53d
@ -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
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
root:x:0:0:root:/:/bin/bash
|
root:x:0:0:root:/:/bin/sh
|
||||||
|
Loading…
Reference in New Issue
Block a user