https://listman.redhat.com/pipermail/valhalla-list/2002-August/011376.html
Fri, 2 Aug 2002 09:23:08 +0800
> Can you turn nochroot on and off during a post kickstart install? I am > currently install from a custom 7.3 CD rom. I can't figure out what the > cdrom is chroot to. I know /mnt/sysimage is already chrooted to /. > > > # The following line will not work because /mnt/source will only work in a > non-chrooted envirnment, /export is chrooted > #cp -R /mnt/source/builder /export >>/mnt/sysimage/root/post.log > # /dev/cdrom will not work, not sure what the cdrom is called in a chrooted > environment > #cp -R /dev/cdrom/builder /export >>/mnt/sysimage/root/post.log > > this section currently works, > %post --nochroot > cp -R /mnt/source/builder /mnt/sysimage/export (/mnt/source is the cdrom) > > > however, most the post install scripts work with the default chroot > environment. > ie: > %post > chgrp > useradd
Try
chroot /mnt/sysimage /bin/bash <<? assorted commands ?
You can also chroot individual commands.
John valhalla-list at redhat.com