Skip to content

Commit

Permalink
Merge pull request #1001 from joseivanlopez/improve_detect_windows
Browse files Browse the repository at this point in the history
Improve performance of Windows detection
  • Loading branch information
joseivanlopez committed Dec 5, 2019
2 parents 3d94a5e + 0727e03 commit 9120202
Show file tree
Hide file tree
Showing 22 changed files with 1,485 additions and 811 deletions.
6 changes: 6 additions & 0 deletions package/yast2-storage-ng.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Dec 4 12:17:37 UTC 2019 - José Iván López González <jlopez@suse.com>

- Improve detection of Windows systems (related to bsc#1135341).
- 4.2.60

-------------------------------------------------------------------
Wed Nov 27 13:53:57 UTC 2019 - Christopher Hofmann <cwh@suse.com>

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-storage-ng.spec
Expand Up @@ -16,7 +16,7 @@
#

Name: yast2-storage-ng
Version: 4.2.59
Version: 4.2.60
Release: 0
Summary: YaST2 - Storage Configuration
License: GPL-2.0-only OR GPL-3.0-only
Expand Down
4 changes: 2 additions & 2 deletions src/lib/y2storage.rb
@@ -1,4 +1,4 @@
# Copyright (c) [2016-2017] SUSE LLC
# Copyright (c) [2016-2019] SUSE LLC
#
# All Rights Reserved.
#
Expand Down Expand Up @@ -64,7 +64,7 @@
require "y2storage/exceptions"
require "y2storage/boot_requirements_checker"
require "y2storage/disk_analyzer"
require "y2storage/existing_filesystem"
require "y2storage/filesystem_reader"
require "y2storage/disk_size"
require "y2storage/fake_device_factory"
require "y2storage/free_disk_space"
Expand Down
9 changes: 9 additions & 0 deletions src/lib/y2storage/blk_device.rb
Expand Up @@ -631,6 +631,15 @@ def in_network?
false
end

# Whether the block device fulfills conditions to be used for a Windows system
#
# Note that only partitions can be used for installing Windows.
#
# @return [Boolean]
def windows_suitable?
false
end

protected

# Values for volume specification matching
Expand Down
5 changes: 2 additions & 3 deletions src/lib/y2storage/boot_requirements_strategies/raspi.rb
@@ -1,4 +1,4 @@
# Copyright (c) [2018] SUSE LLC
# Copyright (c) [2018-2019] SUSE LLC
#
# All Rights Reserved.
#
Expand All @@ -18,7 +18,6 @@
# find current contact information at www.suse.com.

require "y2storage/boot_requirements_strategies/uefi"
require "y2storage/existing_filesystem"

module Y2Storage
module BootRequirementsStrategies
Expand Down Expand Up @@ -114,7 +113,7 @@ def rpi_boot?(partition)
filesystem = partition.direct_blk_filesystem
return false if filesystem.nil? || !filesystem.type.is?(:vfat)

ExistingFilesystem.new(filesystem).rpi_boot?
filesystem.rpi_boot?
end

# First partition in a disk
Expand Down

0 comments on commit 9120202

Please sign in to comment.