Commit edbed96b authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Use full paths when running commands

parent 06dc8e16
......@@ -72,8 +72,8 @@ class BlockDevices:
"""Load block devices from lsblk."""
# Open subprocess to lsblk
lsblk_output = subprocess.check_output([
'lsblk',
lsblk_output = subprocess.check_output([ # nosec
'/usr/bin/lsblk',
'--list', '--noheadings',
'--output', 'PATH,TYPE,SIZE',
'--sort', 'NAME',
......
......@@ -47,8 +47,8 @@ class Sfdisk:
"""Load the various partition types supported by sfdisk."""
# Open subprocess to sfdisk
sfdisk_output = subprocess.check_output([
'sfdisk',
sfdisk_output = subprocess.check_output([ # nosec
'/usr/bin/sfdisk',
'--label', 'gpt',
'--list-types',
])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment