dcpomatic2_disk_writer needs cap_sys_admin otherwise umount fails.
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Jul 2021 21:17:59 +0000 (23:17 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Jul 2021 21:17:59 +0000 (23:17 +0200)
cscript

diff --git a/cscript b/cscript
index 8071d9d..0a68d5f 100644 (file)
--- 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)