Re: How to transfer variable from one section to another

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

 



Gabrie wrote:

cat << EOF1 >> /call-script.sh

Is there a place I could put this script, so I can find it in the post
section? Or should I do this in an other way?

One way to handle this is to use two %post sections, the first not chroot-ed, and copy the script to somewhere under /mnt/sysimage, which is the root of the chroot-ed environment (newly installed filesystem):

%post --nochroot
cp /call-script.sh /mnt/sysimage/call-script.sh

%post
...
</call-script.sh available here now>


-Ed


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux