Darryl L. Pierce
2009-Feb-06 22:09 UTC
[Ovirt-devel] [PATCH node-image] Set "linux" as the terminal type.
Creates /home/.bash_profile and exports the TERM environment variable. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- common-post.ks | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/common-post.ks b/common-post.ks index 24f43b5..e8efa1d 100644 --- a/common-post.ks +++ b/common-post.ks @@ -93,3 +93,10 @@ else echo "Building in production mode, locking root account" passwd -l root fi + +# set the bash environment for root +cat > /root/.bash_profile <<EOF +TERM=linux + +export $TERM +EOF -- 1.6.0.6
Jeremy Katz
2009-Feb-06 22:28 UTC
[Ovirt-devel] [PATCH node-image] Set "linux" as the terminal type.
On Friday, February 06 2009, Darryl L. Pierce said:> Creates /home/.bash_profile and exports the TERM environment variable.If root logs in from some other terminal type (say, an xterm) over ssh, this is going to break. FWIW, it's probably worth ensuring rootfiles is installed, even if you're trying to be minimalistic as it sets up a "sane" shell environment for root and is tiny Jeremy
Darryl L. Pierce
2009-Feb-09 14:04 UTC
[Ovirt-devel] [PATCH node-image] Set "linux" as the terminal type.
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