diff options
-rwxr-xr-x | components/binary_hooks | 2 | ||||
-rwxr-xr-x | components/bootstrap_hooks | 2 | ||||
-rwxr-xr-x | components/chroot_hooks | 2 | ||||
-rwxr-xr-x | components/source_hooks | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/components/binary_hooks b/components/binary_hooks index 4393d3505..cea8903f4 100755 --- a/components/binary_hooks +++ b/components/binary_hooks @@ -84,7 +84,7 @@ def main(): if verbose: print('I: Copying config/hooks/*.hook.binary to binary/live-build') - os.link(hook, os.path.join('binary/live-build/' + os.path.basename(hook)), follow_symlinks=True) + shutil.copy(hook, os.path.join('binary/live-build/' + os.path.basename(hook)), follow_symlinks=True) if verbose: print('I: Executing \' ' + hook + '\'') 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 + '\'') diff --git a/components/chroot_hooks b/components/chroot_hooks index d27d7ecc7..cf000cd95 100755 --- a/components/chroot_hooks +++ b/components/chroot_hooks @@ -84,7 +84,7 @@ def main(): if verbose: print('I: Copying config/hooks/*.hook.chroot 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 + '\'') diff --git a/components/source_hooks b/components/source_hooks index baba70c46..f057b7f60 100755 --- a/components/source_hooks +++ b/components/source_hooks @@ -84,7 +84,7 @@ def main(): if verbose: print('I: Copying config/hooks/*.hook.source to source/live-build') - os.link(hook, os.path.join('source/live-build/' + os.path.basename(hook)), follow_symlinks=True) + shutil.copy(hook, os.path.join('source/live-build/' + os.path.basename(hook)), follow_symlinks=True) if verbose: print('I: Executing \' ' + hook + '\'') |