X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FCheckForNewDisks.py;fp=source%2Fsteps%2FCheckForNewDisks.py;h=14523d887ace231c9a7586ac2837f920f0c3fa18;hb=1e2ad89d3ee07a543bdaa38c2f4d8607e9055f03;hp=e5af3f15de2d335ced9bb4c7257f5cdd74fc9207;hpb=42b8f41a56515a0e5bf787b689b76d58d83dfcd5;p=bootmanager.git diff --git a/source/steps/CheckForNewDisks.py b/source/steps/CheckForNewDisks.py index e5af3f1..14523d8 100644 --- a/source/steps/CheckForNewDisks.py +++ b/source/steps/CheckForNewDisks.py @@ -91,7 +91,7 @@ def Run( vars, log ): # just to be extra paranoid, ignore the device if it already has # an lvm partition on it (new disks won't have this, and that is # what this code is for, so it should be ok). - cmd = "sfdisk -l %s | grep -q 'Linux LVM'" % device + cmd = "parted -l %s | grep -q lvm$" % device has_lvm= utils.sysexec_noerr(cmd, log) if has_lvm: log.write( "It appears %s has lvm already setup on it.\n" % device)