summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-07-14 23:17:59 +0200
committerCarl Hetherington <cth@carlh.net>2021-07-14 23:17:59 +0200
commitb046c63cdaa1ac73dc9346de0ebd7958fc7f7a19 (patch)
tree1182cfdf49dd8a298e6c553ad58ee4e99f83adc1
parent8ab7227e59ad7d9397ae2cfc03a32ecfca83a2c0 (diff)
dcpomatic2_disk_writer needs cap_sys_admin otherwise umount fails.
-rw-r--r--cscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/cscript b/cscript
index 8071d9df8..0a68d5fb2 100644
--- a/cscript
+++ b/cscript
@@ -586,7 +586,7 @@ def package_debian(target, cpu, version, options):
with open('debian/postinst', 'w') as f:
print('#!/bin/sh', file=f)
# Get the required capability to write to disks
- print('setcap cap_dac_override+ep /usr/bin/dcpomatic2_disk_writer', file=f)
+ print('setcap "cap_dac_override+ep cap_sys_admin+ep" /usr/bin/dcpomatic2_disk_writer', file=f)
target.command('./waf dist')
f = open('debian/files', 'w')
print('dcpomatic_%s-1_%s.deb video extra' % (version, cpu), file=f)