From: Alan McKay <alan.mckay at gmail.com> > On Wed, Jan 13, 2010 at 9:48 AM, John Doe wrote: > > It means, if you don't use -nochroot, the '/', when in post, will be > '/mnt/sysimage'. > > If you do use -nochroot, the '/' will be '/'. > > Hmmm, that is behaving differently that what I see. > I have never used --nochroot, and / is /. For quite some time now in > %post I've been manipulating files in /etc and they are /etc/ after > the new image boots. > Or does --nochroot go in %pre? Not according to that link I guess Try this: in %pre, put in /tmp/foo Then, use %post with -nochroot and check if /tmp/foo exists Or maybe, if it exists, use the ramdisk (/dev/shm)... JD