Gentoo Archives: gentoo-user

From: Ian Zimmerman <itz@×××××××.net>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: How to delete the previous environment settings directly after chrooting prior to reading .bashrc ?
Date: Sat, 18 Feb 2017 06:42:37
Message-Id: 20170218064031.5092.0CFEAED8@matica.foolinux.mooo.com
In Reply to: [gentoo-user] How to delete the previous environment settings directly after chrooting prior to reading .bashrc ? by Meino.Cramer@gmx.de
1 On 2017-02-17 17:40, Meino.Cramer@×××.de wrote:
2
3 > is there any clean way to delete the environment completly
4 > right after chrooting into a alternate root installation
5 > -- except using 'login <user>' after chrooting?
6 >
7 > Thanks in advance for any keeping the environment clean! ;)
8
9 Run
10
11 env -i sh
12
13 as the command in chroot.
14
15 I wish it was this easy in the "real world" :-(
16
17 --
18 Please *no* private Cc: on mailing lists and newsgroups
19 Personal signed mail: please _encrypt_ and sign
20 Don't clear-text sign: http://cr.yp.to/smtp/8bitmime.html

Replies