RFC - Bugs 688 & 732

Greg Schafer gschafer at zip.com.au
Sat Jan 24 15:54:57 PST 2004


On Sat, Jan 24, 2004 at 04:45:47PM -0700, Gerard Beekmans wrote:
> On Sat, 2004-01-24 at 13:16, Anderson Lizardo wrote:
> > One possible solution is to add a reminder on "Entering the chroot 
> > environment" to umount proc/devpts *before* exiting chroot, similar to what 
> > we have to remount them when re-entering. Also, It would be nice to expose 
> > what message will appear if the user forgets to do this, because, IMHO, a 
> > "umount: /mnt/lfs: device is busy" is not too intuitive to indicate the real 
> > cause of the umount failure.
> 
> Can we add this to /home/lfs/.bash_logout ?
> 
> Enter chroot, automatically provide a clean environment. Exit chroot and
> unmount the proc and devpts filesystems?

About the only downside of the current solution is that the used shell is
not a login shell. Even typing "logout" results in a message to use "exit"
instead. So I don'k think .bash_logout will cut it.



More information about the lfs-dev mailing list