Skip to content

Commit

Permalink
RootPart partially adapted to use storage-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
ancorgs committed Mar 3, 2017
1 parent 44a86d4 commit 3dde3df
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 192 deletions.
9 changes: 7 additions & 2 deletions src/include/update/rootpart.rb
Expand Up @@ -58,13 +58,18 @@ def initialize_update_rootpart(include_target)
# Returns boolean whether partition can be
# a Linux 'root' file system
def CanBeLinuxRootFS(partition_fs)
if partition_fs == nil
if partition_fs.nil?
Builtins.y2error("partition_fs not defined!")
return false
end

# possible_root_fs contains list of supported FSs
Builtins.contains(FileSystems.possible_root_fs, partition_fs)
# storage-ng
# FIXME: this kind of checks should be responsibility of the upcoming
# Y2Storage::FilesystemType (to be added as part of the
# "yast-storage-ng as a libstorage wrapper" change)
possible_root_fs = [:ext2, :ext3, :ext4, :btrfs, :reiser, :xfs]
possible_root_fs.include?(partition_fs)
end

# flavor is either `update or `boot
Expand Down

0 comments on commit 3dde3df

Please sign in to comment.