Skip to content

Commit

Permalink
solved conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed May 13, 2015
2 parents fa0dbc9 + 706cbf6 commit bd90421
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions package/autoyast2.changes
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Tue May 12 11:28:00 CEST 2015 - schubi@suse.de
section.
- 3.1.81

-------------------------------------------------------------------
Fri May 11 14:39:27 CEST 2015 - dvaleev@suse.com

- Don't try to format PReP partitions (bsc#927748)

-------------------------------------------------------------------
Mon May 11 14:20:03 CEST 2015 - aschnell@suse.de

Expand Down
11 changes: 9 additions & 2 deletions src/include/autoinstall/autopart.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ def propose_default_fs?(partition)
valid_fsids.include?(partition["filesystem_id"])
end

def raw_partition?(partition)
valid_fsids = [Partitions.fsid_bios_grub,
Partitions.fsid_prep_chrp_boot,
Partitions.fsid_gpt_prep]
valid_fsids.include?(partition["filesystem_id"])
end
# Read partition data from XML control file
# @return [Hash] flexible propsal map
def preprocess_partition_config(xmlflex)
Expand Down Expand Up @@ -228,8 +234,8 @@ def preprocess_partition_config(xmlflex)
end
end

# Do not format BIOS Grup partitions
partition["format"] = false if partition["filesystem_id"] == Partitions.fsid_bios_grub
# Do not format raw partitions
partition["format"] = false if raw_partition?(partition)

if Ops.get_integer(partition, "size", 0) == -1
Ops.set(partition, "size", 0)
Expand Down Expand Up @@ -292,6 +298,7 @@ def try_add_boot(conf, disk)
Ops.set(pb, "fsid", Partitions.FsidBoot(dlabel)) # FIXME: might be useless
Ops.set(pb, "filesystem_id", Partitions.FsidBoot(dlabel))
Ops.set(pb, "id", Partitions.FsidBoot(dlabel)) # FIXME: might be useless
Ops.set(pb, "format", false) if raw_partition?(pb)
Ops.set(pb, "auto_added", true)
Ops.set(pb, "type", :primary) # FIXME: might be useless
Ops.set(pb, "partition_type", "primary")
Expand Down

0 comments on commit bd90421

Please sign in to comment.