Exactly. The way I would do this is to
create a directory in /tmp in the %pre and simply copy the contents of that
directory to /mnt/sysimage/tmp in a %post –nochroot immediately
preceeding your current %post. %pre mkdir /tmp/my_stuff_to_copy cp stuff /tmp/my_stuff_to_copy %post –nochroot cp -a /tmp/my_stuff_to_copy/* /mnt/sysimage/tmp %post Your_post_here From:
kickstart-list-bounces@xxxxxxxxxx [mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Hearn, Stan J. So in order to not use a ram disk and to
still have access to the files in the chrooted %post, you'd need to copy
the files to a directory beneath /mnt/sysimage during the %pre stage,
right? Something like /mnt/sysimage/var/tmp? This way no ram disk
is needed and the data is written in %pre and readable by %post. From:
kickstart-list-bounces@xxxxxxxxxx [mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Shabazian, Chip The important thing to know about this is
that you can run TWO %post sections. In the first, you can copy whatever
you want from /tmp/your_dir to the chrooted /tmp, then you can use your current
%post within a chrooted environment From:
kickstart-list-bounces@xxxxxxxxxx [mailto:kickstart-list-bounces@xxxxxxxxxx] On Behalf Of Kent Baxley I'm researching a kickstart problem that deals with some of the
differences between RHEL4 and RHEL5. In RHEL 4, I could create a RAM
drive and copy files to this RAM drive in the %pre script portion of kickstart.
I would then open the RAM drive in the %post section. This allowed me to
pass information from the Pre to the Post processing scripts. Because the
%pre scripts do not have a local drive to write to at this time in the
installation process the became the easiest way tell the post process scripts
what went on during the pre script installation choices. |
_______________________________________________ Kickstart-list mailing list Kickstart-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/kickstart-list