RE: Complete chroot environment?

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

 



Tom Horsley wrote

I've been experimenting with chroot to switch to an
alternate root partition and "do stuff" without
actually having to reboot to that alternate OS.
 
I see that none of the special filesystems seem to
be created as part of the ordinary chroot command, yet
things like the bind-chroot rpm does manage to create
a more complete environment for named to run in
(with populated /dev and /proc and wot-not).
 
Is there a handy tool somewhere to duplicate all the
special filesystems in a chroot environment?
 
Or should I just look at bind-chroot in more detail
and steal what it does?
 ----


Tom,
the following works for me; it may not be all you are looking for
re "complete"

before chrooting to  /corni   which holds an alternate old rh8 install
I run the following   three-line script

[root@bootp ~]# cat mount_corni
#!/bin/bash
mount --bind /tmp /corni/tmp
xhost local:localhost

[root@bootp ~]# 
that xhost line allows me to  run X applications


a year or so ago there was an exchange on this llist 
between me and Gilboa on this subject.
He had an alternateemethod for getting X  to work

hope thiis helps
Jack

Jack Byers byersj@xxxxxxxxxxx

_________________________________________________________________
Don't get caught with egg on your face. Play Chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_dec


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux