Initialize a mock chroot environment variable
Anthony Messina
amessina at messinet.com
Fri Feb 1 18:36:54 UTC 2013
Is it possible to initialize a mock chroot environment variable with the
return from the evaulation of a simple script when calling a koji build?
Something like:
/etc/mock/site-defaults.cfg:
config_opts['environment']['MYVAR'] = "/usr/local/sbin/myscript.sh"
Where /usr/local/sbin/myscript.sh contains something like:
#!/usr/bin/bash
file="/tmp/$RANDOM.txt"
touch "$file" # Created outside the chroot
echo "$file" # $file passed as the MYVAR environment variable
If not, might you suggest another way of accomplishing this task?
Thanks in advance. -A
--
Anthony - http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.fedoraproject.org/pipermail/buildsys/attachments/20130201/fd80f6c3/attachment.sig>
More information about the buildsys
mailing list