FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

LinkBack Thread Tools
Old 10-13-2010, 03:11 PM
Chris Lumens
Default Make the shell in tty2 and ssh all go to /root like on a real system.

From: Peter Jones <pjones@redhat.com>

ssh was already droping you there (though I'm not entirely sure where
the directory is coming from in that case), and you'd not have
.bash_history and .profile and .gdbinit. So now everything uses /root ,
and you get the stuff you might expect.
scripts/upd-instroot | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index c6889da..730b102 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -1005,6 +1005,7 @@ mkdir -p $DEST/firmware
mkdir -p $DEST/lib
mkdir -p $DEST/modules
mkdir -p $DEST/proc
+mkdir -m 0700 $DEST/root
mkdir -p $DEST/selinux
mkdir -p $DEST/sys
mkdir -p $DEST/tmp
@@ -1247,13 +1248,13 @@ directory = /mnt/sysimage/etc
directory = /mnt/sysimage/etc

-cat > $DEST/.profile <<EOF
+cat > $MBD_DIR/root/.profile <<EOF
PS1="[anaconda u@h W]\$ "
export PATH PS1

-cat > $DEST/.bash_history <<EOF
+cat > $DEST/root/.bash_history <<EOF
kill -USR2 `cat /var/run/anaconda.pid`
kill -HUP `cat /var/run/anaconda.pid`
udevadm info --export-db | less

Anaconda-devel-list mailing list

Thread Tools

All times are GMT. The time now is 06:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org