[Ovirt-devel] [PATCH node-image] Set "linux" as the terminal type.

Darryl L. Pierce dpierce at redhat.com
Mon Feb 9 14:04:41 UTC 2009


NOTE: this patch appends the terminal assignment to an existing file
if it exists

Creates /home/.bash_profile and exports the TERM environment variable.

Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
 common-post.ks |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/common-post.ks b/common-post.ks
index 24f43b5..6a49a4a 100644
--- a/common-post.ks
+++ b/common-post.ks
@@ -93,3 +93,9 @@ else
     echo "Building in production mode, locking root account"
     passwd -l root
 fi
+
+# set the bash environment for root
+cat >> /root/.bash_profile <<EOF
+# set terminal type
+export TERM=linux
+EOF
-- 
1.6.0.6




More information about the ovirt-devel mailing list