On Thu, Sep 04, 2014 at 02:18:43PM +0200, Petter Reinholdtsen wrote: > I first tried with > > log-output -t partman-lvm lvcreate --wipesignatures y -l "$extents" \ > -n "$lv" $vg > > but this did not work as I had hoped. Next, I tried using --yes instead > of '--wipesignatures y', and this worked as intended.
man lvcreate says -W, --wipesignatures {y|n} [...] This default behaviour can be controlled by allocation/wipe_signatures_when_zeroing_new_lvs setting found in lvm.conf(5). [...] $ sudo lvm dumpconfig |grep wipe wipe_signatures_when_zeroing_new_lvs=1 Thus it's already enabled. And that means it checks their presence and unfortunately asks for wiping. IMHO it should not prompt at all. Or prompt only if unset. Also see thread https://lists.fedorahosted.org/pipermail/anaconda-patches/2014-January/thread.html#8514 Anyway, with -Wn (do not wipe them), it doesn't prompt anymore and lvcreation succeeds: # lvcreate -l1 -n lv00 vg00 ; mkswap -f /dev/vg00/lv00 ; lvremove -f /dev/vg00/lv00 Logical volume "lv00" created Setting up swapspace version 1, size = 4092 KiB no label, UUID=8b4f2693-6b36-4f1b-b64b-eebbb273152b Logical volume "lv00" successfully removed # lvcreate -l1 -n lv00 vg00 WARNING: swap signature detected on /dev/vg00/lv00. Wipe it? [y/n]: y Wiping swap signature on /dev/vg00/lv00. Logical volume "lv00" created # mkswap -f /dev/vg00/lv00 ; lvremove -f /dev/vg00/lv00 Setting up swapspace version 1, size = 4092 KiB no label, UUID=7131bd2b-6312-49e1-9aa0-7dafeba6b844 Logical volume "lv00" successfully removed # lvcreate -Wn -l1 -n lv00 vg00 Logical volume "lv00" created Better than --yes? I didn't test it on d-i. -- G..e -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org