From: | Tom H <tomh0665@×××××.com> | ||
---|---|---|---|
To: | Gentoo User <gentoo-user@l.g.o> | ||
Subject: | Re: [gentoo-user] Re: How to delete the previous environment settings directly after chrooting prior to reading .bashrc ? | ||
Date: | Sat, 18 Feb 2017 12:20:50 | ||
Message-Id: | CAOdo=SwppL7=6DmQA=4BuhXdHyxUBp+qeV8Xzouj8i+9wOpFDA@mail.gmail.com | ||
In Reply to: | [gentoo-user] Re: How to delete the previous environment settings directly after chrooting prior to reading .bashrc ? by Ian Zimmerman |
1 | On Sat, Feb 18, 2017 at 1:42 AM, Ian Zimmerman <itz@×××××××.net> wrote: |
2 | > On 2017-02-17 17:40, Meino.Cramer@×××.de wrote: |
3 | >> |
4 | >> is there any clean way to delete the environment completly |
5 | >> right after chrooting into a alternate root installation |
6 | >> -- except using 'login <user>' after chrooting? |
7 | > |
8 | > Run |
9 | > |
10 | > env -i sh |
11 | > |
12 | > as the command in chroot. |
13 | |
14 | You can go further |
15 | |
16 | chroot /path/to/dir env -i bash --noprofile --norc |
Subject | Author |
---|---|
Re: [gentoo-user] Re: How to delete the previous environment settings directly after chrooting prior to reading .bashrc ? | Meino.Cramer@×××.de |