Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #712 from ancorgs/xen_autoyast_merge
Merge to master: process Xen virtual partitions from AutoYaST profiles
- Loading branch information
Showing
10 changed files
with
357 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# encoding: utf-8 | ||
|
||
# Copyright (c) [2015-2017] SUSE LLC | ||
# | ||
# All Rights Reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify it | ||
# under the terms of version 2 of the GNU General Public License as published | ||
# by the Free Software Foundation. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
# more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along | ||
# with this program; if not, contact SUSE LLC. | ||
# | ||
# To contact SUSE LLC about this file by physical or electronic mail, you may | ||
# find current contact information at www.suse.com. | ||
|
||
require "yast" | ||
require "y2storage/planned/device" | ||
require "y2storage/planned/mixins" | ||
require "y2storage/match_volume_spec" | ||
|
||
module Y2Storage | ||
module Planned | ||
# Specification for a Y2Storage::StrayBlkDevice object to be processed | ||
# during the AutoYaST proposals | ||
# | ||
# @see Device | ||
class StrayBlkDevice < Device | ||
include Planned::CanBeFormatted | ||
include Planned::CanBeMounted | ||
include Planned::CanBeEncrypted | ||
include MatchVolumeSpec | ||
|
||
# Constructor. | ||
def initialize | ||
super | ||
initialize_can_be_formatted | ||
initialize_can_be_mounted | ||
initialize_can_be_encrypted | ||
end | ||
|
||
# @see Device.to_string_attrs | ||
def self.to_string_attrs | ||
[ | ||
:mount_point, :reuse_name, :reuse_sid, :subvolumes | ||
] | ||
end | ||
|
||
protected | ||
|
||
# Values for volume specification matching | ||
# | ||
# @see MatchVolumeSpec | ||
def volume_match_values | ||
{ | ||
mount_point: mount_point, | ||
fs_type: filesystem_type | ||
} | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.