In mount_configfs(), Popen args param should be a sequence

Fixes #37.

Signed-off-by: Andy Grover <agrover@redhat.com>
This commit is contained in:
Andy Grover
2013-10-30 11:23:04 -07:00
parent 15d2496443
commit 1d64d6f52b

View File

@@ -372,7 +372,7 @@ def modprobe(module):
def mount_configfs():
if not os.path.ismount("/sys/kernel/config"):
cmdline = "mount -t configfs none /sys/kernel/config"
process = subprocess.Popen(cmdline,
process = subprocess.Popen(cmdline.split(),
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
(stdoutdata, stderrdata) = process.communicate()