summaryrefslogtreecommitdiff
path: root/components/source-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'components/source-hooks')
-rwxr-xr-xcomponents/source-hooks8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/source-hooks b/components/source-hooks
index 672b53f3e..552e228da 100755
--- a/components/source-hooks
+++ b/components/source-hooks
@@ -72,8 +72,8 @@ def main():
os.makedirs('source/live-build/config', exist_ok=True)
- mount = subprocess.call('mount -o bind config source/live-build/config', shell=True)
- remount = subprocess.call('mount -o remount,ro,bind source/live-build/config', shell=True)
+ mount = subprocess.check_call('mount -o bind config source/live-build/config', shell=True)
+ remount = subprocess.check_call('mount -o remount,ro,bind source/live-build/config', shell=True)
# process hooks
os.makedirs('source/live-build', exist_ok=True)
@@ -90,11 +90,11 @@ def main():
print('I: Executing \' ' + hook + '\'')
os.chmod(hook, 0o755)
- exec_hook = subprocess.call('cd source && live-build/' + os.path.basename(hook), shell=True)
+ exec_hook = subprocess.check_call('cd source && live-build/' + os.path.basename(hook), shell=True)
os.remove('source/live-build/' + os.path.basename(hook))
# unmount coniguration directory
- umount = subprocess.call('umount source/live-build/config', shell=True)
+ umount = subprocess.check_call('umount source/live-build/config', shell=True)
os.rmdir('source/live-build/config')
os.rmdir('source/live-build')