mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
enable setsid for job control in recovery shell (issue #382)
This commit is contained in:
parent
23e0dc84ef
commit
b887104035
@ -664,7 +664,7 @@ CONFIG_SETPRIV=y
|
||||
CONFIG_FEATURE_SETPRIV_DUMP=y
|
||||
CONFIG_FEATURE_SETPRIV_CAPABILITIES=y
|
||||
CONFIG_FEATURE_SETPRIV_CAPABILITY_NAMES=y
|
||||
# CONFIG_SETSID is not set
|
||||
CONFIG_SETSID=y
|
||||
# CONFIG_SWAPON is not set
|
||||
# CONFIG_FEATURE_SWAPON_DISCARD is not set
|
||||
# CONFIG_FEATURE_SWAPON_PRI is not set
|
||||
|
@ -22,7 +22,12 @@ recovery() {
|
||||
fi
|
||||
echo >&2 "!!!!! Starting recovery shell"
|
||||
sleep 1
|
||||
exec /bin/ash
|
||||
|
||||
if [ -x /bin/setsid ]; then
|
||||
exec /bin/setsid -c /bin/ash
|
||||
else
|
||||
exec /bin/ash
|
||||
fi
|
||||
}
|
||||
|
||||
pause_recovery() {
|
||||
|
Loading…
Reference in New Issue
Block a user