@ -284,8 +284,7 @@ class CryptoBoxContainer:
self . cbox . prefs [ " Programs " ] [ " CryptoBoxRootActions " ] ,
" program " , " cryptsetup " ,
" luksAddKey " ,
self . get_device ( ) ,
" --batch-mode " ] )
self . get_device ( ) ] )
proc . stdin . write ( " %s \n %s " % ( oldpw , newpw ) )
( output , errout ) = proc . communicate ( )
if proc . returncode != 0 :
@ -311,8 +310,7 @@ class CryptoBoxContainer:
" program " , " cryptsetup " ,
" luksDelKey " ,
self . get_device ( ) ,
" %d " % ( keyslot , ) ,
" --batch-mode " ] )
" %d " % ( keyslot , ) ] )
proc . wait ( )
if proc . returncode != 0 :
error_msg = " Could not remove the old luks key: %s " % ( proc . stderr . read ( ) . strip ( ) , )
@ -454,8 +452,7 @@ class CryptoBoxContainer:
" program " , " cryptsetup " ,
" luksOpen " ,
self . get_device ( ) ,
self . name ,
" --batch-mode " ] )
self . name ] )
proc . stdin . write ( password )
( output , errout ) = proc . communicate ( )
if proc . returncode != 0 :
@ -536,8 +533,7 @@ class CryptoBoxContainer:
self . cbox . prefs [ " Programs " ] [ " CryptoBoxRootActions " ] ,
" program " , " cryptsetup " ,
" luksClose " ,
self . name ,
" --batch-mode " ] )
self . name ] )
proc . wait ( )
if proc . returncode != 0 :
err_msg = " Could not remove the luks mapping: %s " % ( proc . stderr . read ( ) . strip ( ) , )
@ -705,8 +701,7 @@ class CryptoBoxContainer:
" program " , " cryptsetup " ,
" luksOpen " ,
self . get_device ( ) ,
self . name ,
" --batch-mode " ] )
self . name ] )
proc . stdin . write ( password )
( output , errout ) = proc . communicate ( )
if proc . returncode != 0 :