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