Author: locilka
Date: Tue Jan 3 16:23:27 2012
New Revision: 67087
URL: http://svn.opensuse.org/viewcvs/yast?rev=67087&view=rev
Log:
Modified saving state of the current randomness (bnc#692799).
Modified:
trunk/installation/package/yast2-installation.changes
trunk/installation/src/inst_finish/umount_finish.ycp
Modified: trunk/installation/package/yast2-installation.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/package/yast2-installation.changes?rev=67087&r1=67086&r2=67087&view=diff
==============================================================================
--- trunk/installation/package/yast2-installation.changes (original)
+++ trunk/installation/package/yast2-installation.changes Tue Jan 3 16:23:27 2012
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Tue Jan 3 16:21:42 CET 2012 - locilka@suse.cz
+
+- Modified saving state of the current randomness (bnc#692799).
+
+-------------------------------------------------------------------
Thu Dec 8 16:45:15 CET 2011 - locilka@suse.cz
- Fixed saving state of the current randomness (bnc#692799).
Modified: trunk/installation/src/inst_finish/umount_finish.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/inst_finish/umount_finish.ycp?rev=67087&r1=67086&r2=67087&view=diff
==============================================================================
--- trunk/installation/src/inst_finish/umount_finish.ycp (original)
+++ trunk/installation/src/inst_finish/umount_finish.ycp Tue Jan 3 16:23:27 2012
@@ -56,7 +56,7 @@
}
/**
- * Preserves the current randomness state
+ * Preserves the current randomness state, BNC #692799
*/
void preserve_randomness_state () {
if (Mode::update()) {
@@ -73,7 +73,8 @@
ret = true;
// Copy the current state of random number generator to the installed system
- if (LocalCommand (sformat ("dd if='%1' bs=1024 count=1 of='%2'",
+ // 4*1024 bytes as stated in BNC #692799, comment #71
+ if (LocalCommand (sformat ("dd if='%1' bs=1024 count=4 of='%2'",
String::Quote (random_path), String::Quote (store_to)
))) {
y2milestone ("State of %1 has been successfully copied to %2", random_path, store_to);
@@ -165,6 +166,9 @@
}
});
+ // BNC #692799: Preserve the randomness state before umounting
+ preserve_randomness_state();
+
map