qubes/storage/file: clone file images as normal user
No need to be root here. QubesOS/qubes-issues#2256
This commit is contained in:
parent
3e30dc17cb
commit
0af5fdd267
@ -471,7 +471,7 @@ def copy_file(source, destination):
|
|||||||
os.makedirs(parent_dir)
|
os.makedirs(parent_dir)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
cmd = ['sudo', 'cp', '--sparse=auto',
|
cmd = ['cp', '--sparse=auto',
|
||||||
'--reflink=auto', source, destination]
|
'--reflink=auto', source, destination]
|
||||||
subprocess.check_call(cmd)
|
subprocess.check_call(cmd)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
Loading…
Reference in New Issue
Block a user