git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't kill self accidentally.
[libguestfs.git]
/
appliance
/
init
diff --git
a/appliance/init
b/appliance/init
index
a3f4784
..
f399916
100755
(executable)
--- a/
appliance/init
+++ b/
appliance/init
@@
-78,7
+78,7
@@
if ! grep -sq guestfs_rescue=1 /proc/cmdline; then
fi
# Use appliance in rescue mode, also used by the virt-rescue command.
fi
# Use appliance in rescue mode, also used by the virt-rescue command.
-TERM=linux ;# XXX library should pass this from library's environment
+eval $(grep -Eo 'TERM=[^[:space:]]+' /proc/cmdline)
PS1='><rescue> '
export TERM PS1
echo
PS1='><rescue> '
export TERM PS1
echo