We have had a few users that can't tell when they are in a chroot env or not. I always change the prompt immediately after a chroot so that I can tell which of the 6 VTs are in the chroot. I've discussed this with releng and there is no easy way to make this happen without leaving too many droppings from it on the finished system. Therefore I would like to suggest a slight change to suggest a small change to Code Listing 5 in the handbook. http://gentoo/doc/en/handbook/handbook-x86.xml?part=1&chap=6#doc_chap2 Could you please add 'export PS1="(chroot) $PS1" ' right after the "source /etc/profile" line. Thanks.
we could update the livecds so that they set their prompt to something like '(livecd) ....' afterall, we already have a bunch of livecd-logic in baselayout and such ...
I would really prefer us not do any hacking unless we put it behind a CDBOOT. If you wanted to do this in baselayout, then great. I personally, just think we should document it and be done with it, if even that much. I've already shot down any ideas of changing the stages, which would be the only way to add a (chroot) type of thing to the prompt without having the user do it themselves. (Why is it nobody ever quotes their IRC conversations in bugs?) The main thing to understand is that the Installer uses the exact same files as the LiveCD itself for installation via GRP, so I have been working to remove any special hacks that we had on the LiveCD to keep them from getting to user's live systems after install.
i wasnt after changing the stage files, just the livecd env
That's what I was hoping too but wolf31o2 (Chris G?) told me that any changes would get carried to the newly created system. I even suggested that PS1 get set to "livecd \W \$" and the hostname get changed to "chroot-livecd" as this would effectively accomplish the same thing after ". /etc/profile" in the chroot.
(In reply to comment #0) > Could you please add 'export PS1="(chroot) $PS1" ' right after the "source > /etc/profile" line. Thanks. I don't see any harm in telling users to change their prompt after having chrooted. If it helps prevent mistakes, why not?
It's in the handbook. Thank you.