Skip to content

Commit

Permalink
Update from code review
Browse files Browse the repository at this point in the history
Co-Authored-By: Ancor González Sosa <ancor@suse.de>
Co-Authored-By: David Díaz González <dgonzalez@suse.de>
  • Loading branch information
3 people committed Apr 10, 2019
1 parent 611c6c6 commit 8028aec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions package/yast2-storage-ng.changes
@@ -1,9 +1,8 @@
-------------------------------------------------------------------
Wed Apr 10 07:55:26 UTC 2019 - David Diaz <dgonzalez@suse.com>

- Fix partitioner to not have not doable operations after editing
a partition that initially contains an LvmPv not associated with
any LvmVg (bsc#1129663).
- Partitioner: when editing a block device, clean-up useless
LVM PV metadata from it (bsc#1129663)
- 4.1.81

-------------------------------------------------------------------
Expand Down
6 changes: 2 additions & 4 deletions src/lib/y2partitioner/actions/controllers/filesystem.rb
Expand Up @@ -351,12 +351,10 @@ def finish
# Removes from the block device or its encryption layer a LvmPv not associated to an LvmVg
# (bsc#1129663)
def remove_unused_lvm_pv
device = blk_device.encryption ? blk_device.encryption : blk_device
device = blk_device.encryption || blk_device
lvm_pv = device.lvm_pv

return unless device.lvm_pv

device.remove_descendants if lvm_pv.descendants.empty?
device.remove_descendants if lvm_pv && lvm_pv.descendants.none?
end

# Whether is possible to define the generic format options for the current
Expand Down

0 comments on commit 8028aec

Please sign in to comment.