Skip to content

Commit

Permalink
lvm-setup: Remove unnecessary sudo
Browse files Browse the repository at this point in the history
The whole script needs to be run as root.

Signed-off-by: Mike McCracken <mike.mccracken@canonical.com>
Mike McCracken committed Nov 5, 2015
1 parent 737e7b4 commit 45423a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lxd-setup-lvm-storage
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ def destroy_image(args, lxd):
"containers before destroying storage.")
sys.exit()

pvname = check_output("sudo vgs {} --noheadings -o pv_name"
pvname = check_output("vgs {} --noheadings -o pv_name"
.format(vgname), shell=True).decode().strip()
print("Removing volume group {}".format(vgname))
check_output("vgremove -f {}".format(vgname), shell=True)

0 comments on commit 45423a9

Please sign in to comment.