Properly handle bootstrap script in seed and lxc modules.

This is related to be605bc81a43879c15f5b026f5d2529a9b008c7e and #14865.
On September 8, 2014 3:42:37 PM GMT+01:00, Mathieu Le Marec - Pasquet <notifications@github.com> wrote:
>> @@ -2008,7 +2010,19 @@ def bootstrap(name, config=None,
>approve_key=True,
>>                  run_cmd(name, 'install -m 0700 -d
>{0}'.format(configdir))
>>                  bs_ = __salt__['config.gather_bootstrap_script'](
>>                      bootstrap=bootstrap_url)
>> -                cp(name, bs_, '/tmp/bootstrap.sh')
>> +                dest_dir = os.path.join('/tmp', rstr)
>> +                for cmd in [
>
>Rewriting the lxc module because of two concurrent implementations is
>not the purpose of this PR, @s0undt3ch, the purpose is to fix the
>bootstrap phase introduced by a CVE fix which introduced regression.
>we made the decision with @thatch45 @mgwilliams a bit ago to go this
>way, it would be fine to stabilize it
>
>---
>Reply to this email directly or view it on GitHub:
>https://github.com/saltstack/salt/pull/15545/files#r17241761

I'm not saying to use salt-cloud, I'm saying you should look because it uses random temporary directories, like this code probably should, that's all.
Pedro Algarvio @ Phone