Skip to content

Commit

Permalink
Enable encryption for RAIDs (bsc#1175624) (#682)
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Sep 2, 2020
1 parent 8e53d13 commit 707c3aa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions package/autoyast2.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 2 16:03:15 CEST 2020 - schubi@suse.de

- Enable encryption for RAIDs (bsc#1175624).
- 3.1.173

-------------------------------------------------------------------
Fri Apr 3 09:27:04 CEST 2020 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/autoyast2.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: autoyast2
Version: 3.1.172
Version: 3.1.173
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
3 changes: 2 additions & 1 deletion src/modules/AutoinstRAID.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,9 @@ def Write
dev = "/dev/md"+md.fetch("partition_nr", 0).to_s
end
md["device"] = dev
if Ops.get_symbol(md, "enc_type", :none) != :none
if md["crypt_fs"]
Storage.SetCryptPwd(dev, Ops.get_string(md, "crypt_key", ""))
md["enc_type"] = md["format"] ? :luks : :twofish
end
Builtins.y2milestone("Working on %1", md)
chunk_size = 4
Expand Down

0 comments on commit 707c3aa

Please sign in to comment.