forked from pool/libguestfs
- use ttyS0 for setctsid if /proc/consoles does not exist
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=102
This commit is contained in:
parent
e149406abb
commit
655fe5ff27
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 20 17:39:23 CEST 2012 - ohering@suse.de
|
||||
|
||||
- use ttyS0 for setctsid if /proc/consoles does not exist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 19 23:48:08 CEST 2012 - ohering@suse.de
|
||||
|
||||
|
@ -154,10 +154,14 @@ else
|
||||
# Use appliance in rescue mode, also used by the virt-rescue command.
|
||||
eval $(grep -Eo 'TERM=[^[:space:]]+' /proc/cmdline)
|
||||
PS1='><rescue> '
|
||||
console_major_minor="`sed 's@^.* @@;p;Q' < /proc/consoles `"
|
||||
console_dev="`find /sys/ -name dev -type f -print0 | xargs -0 --no-run-if-empty grep -m 1 -l ${console_major_minor}`"
|
||||
console_kname=${console_dev%/dev}
|
||||
console_kname=${console_kname##*/}
|
||||
console_kname=ttyS0
|
||||
if test -f /proc/consoles
|
||||
then
|
||||
console_major_minor="`sed 's@^.* @@;p;Q' < /proc/consoles `"
|
||||
console_dev="`find /sys/ -name dev -type f -print0 | xargs -0 --no-run-if-empty grep -m 1 -l ${console_major_minor}`"
|
||||
console_kname=${console_dev%/dev}
|
||||
console_kname=${console_kname##*/}
|
||||
fi
|
||||
export TERM PS1
|
||||
echo
|
||||
echo "------------------------------------------------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user