Updating from chroot
Dominik 'Rathann' Mierzejewski
D.Mierzejewski at icm.edu.pl
Fri Feb 10 09:41:53 UTC 2006
On Thu, Feb 09, 2006 at 06:14:51PM -0600, Jonathan Berry wrote:
> Hi all,
>
> I have my test system setup on a partition along side my normal use
> FC4 install. The partition gets mounted in FC4, and I found I could
> do some stuff in the FC5T2 (Rawhide) environment (eg rpm -q stuff) by
> chrooting into the FC5 partition. What I do not know is what all I
> can successfully do in the chroot environment and what things should
> be done to get a more fully working test system running in chroot (eg,
> /dev/ is basically empty). Specifically, it would be nice to do a yum
> update from within the chroot so I don't have to reboot to the Rawhide
> install, update, wait forever for updates to download and install
> since I have not updated in a while, reboot to the new kernel, etc.
> Can this sort of thing be done safely (correctly) from within the
> chroot? Can I do stuff like start up udev so I can access hardware?
mount --bind is your friend ;)
Do it for /dev, /proc, /sys and /tmp and you should be able to run X apps,
too.
Regards,
--
Dominik 'Rathann' Mierzejewski <rathann*at*icm.edu.pl>
Interdisciplinary Centre for Mathematical and Computational Modelling
Warsaw University | http://www.icm.edu.pl | tel. +48 (22) 5540810
More information about the fedora-test-list
mailing list