Re: [PATCH 08/29] Make the shell in tty2 and ssh all go to /root like on a real system.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



you have $MBD_DIR when creating .profile, and $DEST when creating .bash_history, I think they are the same, but it looks confusing

--

  Martin Gracik

----- "Chris Lumens" <clumens@xxxxxxxxxx> wrote:

> From: Peter Jones <pjones@xxxxxxxxxx>
> 
> 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
>  EOF
>  
> -cat > $DEST/.profile <<EOF
> +cat > $MBD_DIR/root/.profile <<EOF
>  PS1="[anaconda \u@\h \W]\\\\$ "
> 
> PATH=/bin:/usr/bin:/usr/sbin:/mnt/sysimage/sbin:/mnt/sysimage/usr/sbin:/mnt/sysimage/bin:/mnt/sysimage/usr/bin
>  export PATH PS1
>  EOF
>  
> -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
> -- 
> 1.7.1.1
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux