Fedora uses a special PROMPT_COMMAND for screen terminal types,
which are the default with DevStack. The PROMPT_COMMAND interacts
in a negative way with the -t and -X and -p flags, causing DevStack
not to work. To solve this problem, this patch forces PROMPT_COMMAND
to default to /bin/true, triggering no changes to the window title
used within screen. Also this patch enables F19 as a non-FORCE
distribution.
Change-Id: I2414d9e28dd95b69272e132163b29ed83f73b2f6
Fixes: bug #1196340
| ... | ... |
@@ -1020,6 +1020,8 @@ function screen_rc {
|
| 1020 | 1020 |
echo "sessionname $SCREEN_NAME" > $SCREENRC |
| 1021 | 1021 |
# Set a reasonable statusbar |
| 1022 | 1022 |
echo "hardstatus alwayslastline '$SCREEN_HARDSTATUS'" >> $SCREENRC |
| 1023 |
+ # Some distributions override PROMPT_COMMAND for the screen terminal type - turn that off |
|
| 1024 |
+ echo "setenv PROMPT_COMMAND /bin/true" >> $SCREENRC |
|
| 1023 | 1025 |
echo "screen -t shell bash" >> $SCREENRC |
| 1024 | 1026 |
fi |
| 1025 | 1027 |
# If this service doesn't already exist in the screenrc file |
| ... | ... |
@@ -109,7 +109,7 @@ disable_negated_services |
| 109 | 109 |
|
| 110 | 110 |
# Warn users who aren't on an explicitly supported distro, but allow them to |
| 111 | 111 |
# override check and attempt installation with ``FORCE=yes ./stack`` |
| 112 |
-if [[ ! ${DISTRO} =~ (oneiric|precise|quantal|raring|saucy|7.0|wheezy|sid|testing|jessie|f16|f17|f18|opensuse-12.2|rhel6) ]]; then
|
|
| 112 |
+if [[ ! ${DISTRO} =~ (oneiric|precise|quantal|raring|saucy|7.0|wheezy|sid|testing|jessie|f16|f17|f18|f19|opensuse-12.2|rhel6) ]]; then
|
|
| 113 | 113 |
echo "WARNING: this script has not been tested on $DISTRO" |
| 114 | 114 |
if [[ "$FORCE" != "yes" ]]; then |
| 115 | 115 |
die $LINENO "If you wish to run this script anyway run with FORCE=yes" |
| ... | ... |
@@ -830,6 +830,7 @@ if [[ "$USE_SCREEN" == "True" ]]; then |
| 830 | 830 |
SCREEN_HARDSTATUS='%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})'
|
| 831 | 831 |
fi |
| 832 | 832 |
screen -r $SCREEN_NAME -X hardstatus alwayslastline "$SCREEN_HARDSTATUS" |
| 833 |
+ screen -r $SCREEN_NAME -X setenv PROMPT_COMMAND /bin/true |
|
| 833 | 834 |
fi |
| 834 | 835 |
|
| 835 | 836 |
# Clear screen rc file |