Merge ~mwhudson/curtin:lp-1923487 into curtin:master

Proposed by Michael Hudson-Doyle
Status: Merged
Approved by: Michael Hudson-Doyle
Approved revision: 3188032e5126b3fd529733f246f118061800710f
Merge reported by: Server Team CI bot
Merged at revision: not available
Proposed branch: ~mwhudson/curtin:lp-1923487
Merge into: curtin:master
Diff against target: 13 lines (+1/-1)
1 file modified
curtin/commands/block_meta.py (+1/-1)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Dan Bungert Approve
Review via email: mp+401009@code.launchpad.net

Commit message

block_meta: pass --yes to lvcreate alongside --wipesignatures=y

Otherwise it will not actually wipe the signatures it finds.

LP: #1923487

To post a comment you must log in.
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

The amd64 failure is the pylint flake.

Revision history for this message
Dan Bungert (dbungert) wrote :

Manpage supports this change:
-W|--wipesignatures y|n
Controls detection and subsequent wiping of signatures on new
LVs. There is a prompt for each signature detected to confirm
its wiping (unless --yes is used to override confirmations.)

review: Approve
Revision history for this message
Server Team CI bot (server-team-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/curtin/commands/block_meta.py b/curtin/commands/block_meta.py
2index cf6bc02..29f3969 100644
3--- a/curtin/commands/block_meta.py
4+++ b/curtin/commands/block_meta.py
5@@ -1324,7 +1324,7 @@ def lvm_partition_handler(info, storage_config):
6 cmd = ["lvcreate", volgroup, "--name", name, "--zero=y"]
7 release = distro.lsb_release()['codename']
8 if release not in ['precise', 'trusty']:
9- cmd.extend(["--wipesignatures=y"])
10+ cmd.extend(["--wipesignatures=y", "--yes"])
11
12 if info.get('size'):
13 size = util.human2bytes(info["size"])

Subscribers

People subscribed via source and target branches