diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2013-11-04 07:29:18 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-11-04 07:40:05 +0100 |
commit | 7bb90e9f5f36098da07cab7501e7e50cbc90d845 (patch) | |
tree | 26444e2bd0ee2978c5119ee4aefd2dd4e9de453e /components/bootstrap_hooks | |
parent | a5bd3715683690498cef82c2efc132a46de3f60e (diff) | |
download | vyos-live-build-7bb90e9f5f36098da07cab7501e7e50cbc90d845.tar.gz vyos-live-build-7bb90e9f5f36098da07cab7501e7e50cbc90d845.zip |
Replacing os.link calls for hooks with shutil.copy to properly dereference symlinks in python stubs.
Diffstat (limited to 'components/bootstrap_hooks')
-rwxr-xr-x | components/bootstrap_hooks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/bootstrap_hooks b/components/bootstrap_hooks index 5162cdb5d..57b0e71f9 100755 --- a/components/bootstrap_hooks +++ b/components/bootstrap_hooks @@ -84,7 +84,7 @@ def main(): if verbose: print('I: Copying config/hooks/*.hook.bootstrap to chroot/live-build') - os.link(hook, os.path.join('chroot/live-build/' + os.path.basename(hook)), follow_symlinks=True) + shutil.copy(hook, os.path.join('chroot/live-build/' + os.path.basename(hook)), follow_symlinks=True) if verbose: print('I: Executing \' ' + hook + '\'') |